convert to string javascript

JavaScript
//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(); // --> 12345const num = 123; //> type number 123
const str = num.toString(); //> type string "123" num.toString()<script language="JavaScript" type="text/javascript"> 
var a = 3.3445;
var c = a.toString();
alert(c);
</script>
   var myNumber=120;
var myString = myNumber.toString(); //converts number to string "120"var myNumber=120;
var myString = myNumber.toString(); //converts number to string "120"
Source

Also in JavaScript: