String.Format in javascript?
Posted
by chobo2
on Stack Overflow
See other posts from Stack Overflow
or by chobo2
Published on 2010-03-28T22:17:56Z
Indexed on
2010/03/28
22:23 UTC
Read the original article
Hit count: 184
Hi
this is driving me nuts. I believe I asked this exact same question but I can't find it anymore(I used stackoverflow search, google search, manually searched my posts, searched my code).
I wanted something that would be like the C# String.Format where you could do something like
string format = String.Format("Hi {0}",name);
just for javascript of course and one person gave me a simple answer it was not like a jquery plugin or anything but I think you made some json thing or something and it worked and was simple to use.
I for the life of me can't find this post.
© Stack Overflow or respective owner