...
Table plus | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
...
Code Block | ||
---|---|---|
| ||
wret = indexOf("This will return ?", "This"); print("Return " + wret); |
Print Return 0
Note |
---|
If the first occurrence of str2 is the first caracter of str1, indexOf( ) returns 0. |
See also
Filter by label (Content by label) | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
...
Table plus | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
...
Code Block | ||
---|---|---|
| ||
wret = indexOf("This will return ?", "This"); print("Return " + wret); |
Print Return 0
Note |
---|
If the first occurrence of str2 is the first caracter of str1, indexOf( ) returns 0. |
Filter by label (Content by label) | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|