From ES6 onward, you could use template strings:
let soMany = 10;
console.log(`This is ${soMany} times easier!`);
// "This is 10 times easier!"
Here is the reference;
https://stackoverflow.com/questions/610406/javascript-equivalent-to-printf-string-format
Add to favorites