7 Days of JS: Where is My Element
- JavaScript
- Challenge
- Lautaro Lobo
- 03 Dec, 2019
Welcome to day 5 of 7 Days of JavaScript! Today we will code a classic function that:
- Takes two parameters: an element and an array of elements
- Returns the position of the element inside the array. If the element is not in the array, returns -1.
Wish you luck!
You can see the solution here.