Can anybody help me figure out how I can get the position of a string inside an array.
For instance,
myArray[“hello”, “goodbye”, “sayonara”];
myString = “goodbye”;
Whats the simplest way to get the index in myArray that myString occupies (ie. 1)? Something like the string-method indexOf() but for arrays would be great…