String.format for javascript (C# .NET like syntax for concatenating strings)

Here is a little hack to make javascript behave more like .NET with string.format…

usage:

js code:

From: http://stackoverflow.com/questions/610406/javascript-equivalent-to-printf-string-format/4673436#4673436

Leave a Reply