Answers for "array -1 javascript"

0

array -1 javascript

//The index of any item that does not exist in an array is -1

//example:
a = ["help","I'm","a","sentient","array"];
a.indexOf("Icecream");//this returns -1
Posted by: Guest on April-25-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language