int to string javascript

JavaScript
var myNumber=120;
var myString = myNumber.toString(); //converts number to string "120"//You can call .toString() on every defined variable.

var x1 = Boolean(0); x1.toString(); // --> false
var x2 = Boolean(1); x2.toString(); // --> true
var x3 = new Date("2020/03/13"); x3.toString(); // --> Fri Mar 13 2020 00:00:00 GMT+0100
var x4 = "12345"; x4.toString(); // --> 12345
var x5 = 12345; x5.toString(); // --> 12345var number = 12;
return numner.toString();<script language="JavaScript" type="text/javascript"> 
var a = 3.3445;
var c = a.toString();
alert(c);
</script>
       var num=213; 
    document.write("Output : " + num.toString());   // convert to integer string        
    document.write("Output : " + num.toString(2));   // convert to binary string       
// Convert strings
Number('123'); // returns 123
Number('12.3'); // returns 12.3
Number('3.14someRandomStuff'); // returns NaN
Number('42px'); // returns NaN

Source

Also in JavaScript: