Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascrpt find index


const numbers = [2, 4, 5, 3, 8, 9, 11, 33, 44];
const findIndex = numbers.findIndex((number) => number == 5);
console.log(findIndex)
//Expected output: 2
 
PREVIOUS NEXT
Tagged: #javascrpt #find #index
ADD COMMENT
Topic
Name
8+3 =