javascript template string

JavaScript
const age = 3
console.log(`I'm ${age} years old!`)var animal = "cow";
var str=`The ${animal} jumped over the moon`; // string interpolationconst classes = `header ${ isLargeScreen() ? '' :
  `icon-${item.isCollapsed ? 'expander' : 'collapser'}` }`;//Regular string
var rgb = "rgb(" + r + "," + g + "," + b + ")";
//Template literal
var rgb = `rgb(${r}, ${g}, ${b})`;`string text`

`string text line 1
 string text line 2`

`string text ${expression} string text`

tag`string text ${expression} string text``string text`

`string text line 1
 string text line 2`

`string text ${expression} string text`

tag `string text ${expression} string text`

Source

Also in JavaScript: