Javascript:Convert from Number to String

by Mohan 2012-09-20 22:23:09



Convert from Number to String
This tip permits you to convert from number to string by adding an empty string at the end of the number. Example:
var mynumber = 234;
typeof mynumber; //Number

mynumber += '';
typeof mynumber; //String



771
like
0
dislike
0
mail
flag

You must LOGIN to add comments