Answers for "concantene number in js"

1

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);
Posted by: Guest on June-08-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language