In C there is a printf function that I can put %d in the statement and pass the value into it later.
I ma just wondering is there a similar function in Javascript so that I can do something like printf("The number is: %d", 18) and it return a string "The number is:18"?
I searched online and I found an open source call sprint, but it seems to be over-kill since I don't use this frequently in my project.
Many thanks!