[ad_1]
The first parameter is the value to be found.
The second parameter is the starting index.
So:
indexOf(2, 3)
Means find the first occurrence of 2 starting at index 3.
The link provided by @Roko shows some useful examples of this with some additional detail.
0
[ad_2]
solved What is the 2nd param in indexOf(a,b) in JavaScript