JavaScript JavaScript Loops, Arrays and Objects Tracking Multiple Items with Arrays Useful Array Methods

Vic Mercier
Vic Mercier
3,276 Points

There is way to check if a prompt dialog is either float or int

Same question

1 Answer

Prompt values are always strings but if you want to use them as floats of ints  you can use 
parseFloat()  of the parseInt() functions