$ ./guess_the_language
Problem Solving — predict the output
Problem Solving — predict the output · easy · #51
What is the output?
console.log([1, 2, 3].indexOf(4));
-1
0
3
undefined
indexOf returns -1 when the value is not present.
Play Problem Solving ▸
◂ #50
all Problem Solving — predict the output questions
#52 ▸