Basics

Declaration

Important methods

Convenience methods

  • s.substring( m ) returns a new string representing the substring of s starting with its character at index m and continuing to the end of s.

  • s.indexOf( t ) is equivalent to s.indexOf( t, 0 ).

  • s.lastIndexOf( t ) is equivalent to s.lastIndexOf( t, m ), where m+1 is the length of character string represented by s.