4 ms·
> Finally, note that all the new enhancements have come without breaking backward compatibility. Doesn't string interpolation break from ES5? "${foo}" means s
by chrisdevereux 11y ago
> Finally, note that all the new enhancements have come without breaking backward compatibility.
Doesn't string interpolation break from ES5?
"${foo}" means something different in 6 vs 5, right?
- jeswin 11y agoTemplate strings (https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/template_strings https://developer.mozilla.org/en/docs/Web/JavaScript/Referen...) use backticks, instead of double/single quotes. let a = `${foo}`; //Template string var b = "${foo}"; //same as in 5.
- chrisdevereux 11y agoI stand corrected. Thanks.