Answers for "search no of item in array"

1

search no of item in array

let alligator = ["thickscales", "tail", "rounded","12"];

console.log(alligator.length)
Posted by: Guest on July-18-2020
1

how to get the index of an array in javascript

search = (arr, item) => { return arr.indexOf(item); }
Posted by: Guest on April-06-2020

Code answers related to "search no of item in array"

Code answers related to "Javascript"

Browse Popular Code Answers by Language