string interpolation

Estimated reading time: 1 minute

core string vs es6

  • core
let name = 'kamal';
console.log(kamal + ' ' + 'is a code artist');
  • es6 interpolation backtick
let name = 'kamal';
console.log(`${name} is a code artist`);

es, es6, js