string templating in js code example
Example 1: javascript string interpolation
var animal = "cow";
var str=`The ${animal} jumped over the moon`; // string interpolation
Example 2: ${} js
let x = 5;
console.log("hello world " + x + " times");
console.log(`hello world ${x} times`);