ondObno
0
Q:

search no of item in array

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

console.log(alligator.length)
1
search = (arr, item) => { return arr.indexOf(item); }
0
array.find(function(element))
0
function checkAllEven(arr) {
  return arr.every(function(x){
	 return	x % 2 === 0
	})
}

//using "every" to check every item in array.
0

New to Communities?

Join the community