Possible Duplicate:
JavaScript equivalent to printf/string.format
Do we have something like C# String.Format(...) in JavaScript?
I like to be able to say String.Format('text text {0}, text text {1}', value1, value2);
and ideally as an extension method:
'text text {0}, text text {1}'.format(value1, value2);
Thanks,