String.Format in javascript?
- by chobo2
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.