Page 1 of 1

JS arrays

Posted: Sat Apr 12, 2003 3:59 am
by Yumm Yumm
this is for JS. Was wondering if it's possible to store number value (not strings) in arrays?? if yess can some one show me the syntax for it, thnx.

Posted: Sat Apr 12, 2003 4:14 am
by Yumm Yumm
ok nevermind the ealier question but i got a new one. Was wondering if its a possible to turn a string ex:var example="567" to a number value, var example=567,?????

Posted: Sat Apr 12, 2003 2:57 pm
by Skyzyx

Code: Select all

example="567"; // A string.

example2=parseInt(example); // A number (integer).
example3=parseFloat(example); // A number (floating-point).