Possible Duplicate:
JavaScript equivalent to printf/string.format
I'm not sure the exact term (string substitution?) but many languages (C, VB, C#, etc.) offer similar mechanisms for constructing string dynamically. The following is an example in C#:
string firstName = "John";
string lastName = "Doe";
string sFinal = string.Format(" Hello {0} {1} !", firstName, lastName);
I'd would like to accomplish the same thing in JavaScript. Can anyone shed some light?
Thanks,