how to turn number into string javascript

var myNumber=120;
var myString = myNumber.toString(); //converts number to string "120"    var num=213; 
    document.write("Output : " + num.toString());   // convert to integer string        
    document.write("Output : " + num.toString(2));   // convert to binary string       
var myNumber=120;
var myString = myNumber.toString(); //converts number to string "120"