number to string javascript

JavaScript
var myNumber=120;
var myString = myNumber.toString(); //converts number to string "120"var num = 15;
var n = num.toString();var num = 15;
var n = num.toString(); /* now */ "15"num.toString();var text = '42px';
var integer = parseInt(text, 10);
// returns 42
let myNumber = Number("5.25"); //5.25let string = "1";
let num = parseInt(string);
//num will equal 1 as a int
Source

Also in JavaScript: