Skip to content

Comment on ES6 in Depth: Destructuringparent

Comments

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?

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.

I stand corrected. Thanks.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.