34,333
edits
Changes
→Creating a JavaScript String Object
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).
To split a string up based on the locations of a specified delimiter (in this case semi-colons):
<pre>
</pre>
== JavaScript String Object Methods ==