Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

concatenate 2 numbers javascript

Use "" + 5 + 6 to force it to strings. 
This works with numerical variables too:

var a = 5;
var b = 6;
console.log("" + a + b);
 
PREVIOUS NEXT
Tagged: #concatenate #numbers #javascript
ADD COMMENT
Topic
Name
2+9 =