$ ./guess_the_language
Problem Solving — predict the output
Problem Solving — predict the output · medium · #36
What is the output?
console.log("abc".indexOf("b"));
0
2
-1
1
"b" is at index 1 in zero-based indexing.
Play Problem Solving ▸
◂ #35
all Problem Solving — predict the output questions
#37 ▸