I think I can safely say that nobody understands quantum mechanics.” Richard Feynman
A resource for web developers a code snippet library with step by step tutorials.

a resource for web developers...

       

Search Amazon

JavaScript: Strings tutorial code snippet 3.

 

Up Up to JavaScript: Strings overview page

 

 

Examples of calling String object methods 'indexOf()' and 'substring()'.

Where 'substring()' is an example of a method that can accept either one or two parameters.

Note that these methods do not cause a 'state change' of the string.

Above confirms that a string is just an 'array' of characters indexed from 0.

 





Output view



Back to top

 

Bookmark and Share

 

Copyright © 2006-2010 justfigures.co.uk