January 6th, 2007, 06:59 PM
How to convert int to string
Is there a method to convert an int to a string ?
January 6th, 2007, 07:16 PM
the conversion comes from context...ie
v = 3; //v is an interger
v= v + ""; //v is now a string
v= v + 4; //v is still a string
alert(v) returns "34" not 7
John Resig for president. jQuery 1.3 floats my boat
January 6th, 2007, 07:22 PM
Thank you, I couldn't find anything about this on google. I thought parseString or something would exist. But this works good.
January 7th, 2007, 05:20 AM
You can also use the toString() method to cast things to strings.