<code>"hello".indexOf('l')</code> returns
- A
3
- Bcheck_circle
2
- C
1
- D
−1
Explanation
Index of FIRST 'l' (at position 2). Returns -1 if not found.
AP Computer Science A· difficulty 3/5
<code>"hello".indexOf('l')</code> returns
3
2
1
−1
Explanation
Index of FIRST 'l' (at position 2). Returns -1 if not found.
Want 10 more like this — adaptive to your weak spots?