34,333
edits
Changes
→Creating a JavaScript String Object
</pre>
returns the postion index of the word ''my'' in the string (the word ''my '' begins position 8 because the first character is always index position 0, '''not''' index position 1).