+ 1
Plz...where can i see a better explanation on how to find a specific item in an array
JavaScript
2 Réponses
+ 8
These are some of the sites where you can explore..
https://www.w3schools.com/JSREF/jsref_find.asp
https://stackoverflow.com/questions/143847/best-way-to-find-if-an-item-is-in-a-javascript-array
https://www.geeksforgeeks.org/javascript-array-find-method/
Hope this helps..
+ 1
By index
let arr = [1, 2, 3]
console.log(arr[0], arr[1], arr[2])