I need to know how to concatenate variables containing numbers, that is, string them together one after the other. Every method I know simply adds the various numbers together and spits out the sum.
You’re right?if you simply try to add the variables together using the plus (+) operator you’ll get the values added numerically. For example, given that:
var a = 5;var b = 10;var c = 999;
This code correctly displays the value 1014:
alert (a + b + c);
alert ("" + a + b + c);