Configuration

1
Console Output
>

Visual Output

Hello World!
indexOf()
o
4
12
1
Method Comparison
indexOf():
Returns the first index at which a specified value occurs in a string (or array), or -1 if not found.
lastIndexOf():
Returns the last index at which a specified value occurs in a string (or array), or -1 if not found.