javascript: how do I get the number of an item in an array?
Posted
by jesse
on Stack Overflow
See other posts from Stack Overflow
or by jesse
Published on 2010-03-16T20:45:48Z
Indexed on
2010/03/16
20:51 UTC
Read the original article
Hit count: 277
JavaScript
|array
var fruits = [ 'apple', 'banana', 'orange' ];
how do I find what number the value "banana" is? (which, of course, is "1").
thanks
© Stack Overflow or respective owner