JavaScript equivalent to C# String.Format

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

FavoriteLoadingAdd to favorites
Spread the love

Author: Shahzad Khan

Software developer / Architect