I come from python & if I want to print this line "Hello World" I can do this:
line = "Hello %s" % "World"
How can I combine string templates with my variables like the above?
IE, I want to combine this
var arrray = new Array( "a", "b", "c" );
var template = "<option> %s </option>";
for ( var i in array )
{
alert( template % i ); // should show "<option> a </option>" & so on
}