concat number in a string javascript code example
Example: concantene number in js
Use "" + 5 + 6 to force it to strings.
This works with numerical variables too:
var a = 5;
var b = 6;
console.log("" + a + b);
Use "" + 5 + 6 to force it to strings.
This works with numerical variables too:
var a = 5;
var b = 6;
console.log("" + a + b);