JS arrays

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Yumm Yumm
Forum Newbie
Posts: 6
Joined: Sat Apr 12, 2003 3:59 am

JS arrays

Post 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.
Yumm Yumm
Forum Newbie
Posts: 6
Joined: Sat Apr 12, 2003 3:59 am

Post 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,?????
Skyzyx
Forum Commoner
Posts: 42
Joined: Fri Feb 14, 2003 1:53 am
Location: San Jose, CA

Post by Skyzyx »

Code: Select all

example="567"; // A string.

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