1.

How To Convert Numbers To Strings Using Javascript?

Answer»

You can prepend the number with an EMPTY string 
var MYSTRING = ""+myinteger; 
or 
var mystring = myinteger.toString(); 
You can specify a base for the CONVERSION
var myinteger = 14; 
var mystring = myinteger.toString(16);
mystring will be "E".

You can prepend the number with an empty string 
var mystring = ""+myinteger; 
or 
var mystring = myinteger.toString(); 
You can specify a base for the conversion, 
var myinteger = 14; 
var mystring = myinteger.toString(16);
mystring will be "e".



Discussion

No Comment Found