$ ./guess_the_language
Problem Solving — predict the output
Problem Solving — predict the output · medium · #101
What is the output?
console.log([10, 9, 8].findIndex((x) => x < 9));
2
8
-1
1
findIndex returns the position of the first match, not the value.
Play Problem Solving ▸
◂ #100
all Problem Solving — predict the output questions
#102 ▸