String interpolation mean 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 value = dummy`Ik ben ${name} en ik ben ${age} jaar`;
function dummy() {
let str = "";
strings.forEach((string, i) => {
str += string + values[i];
});
return str;
}