0

Is it possible to print a string by referencing a variable similar to C's printf function? I do not want to concatenate strings with '+' operator.

for example:

console.log("What the difference in %i - %i ?", 7, 2);

should output:

What the difference in 7-2 ?
SunDontShine
  • 128
  • 2
  • 13

0 Answers0