• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 6. Core Syntax > String.substring()

String.substring()

JavaScript1.0+, JScript1.0+ NES2+, Nav2+, IE3+, Opera3+ Syntax

							string.substring(num1,
							num2)

string.substring(num)

Description

The substring() method of an instance of the String object returns the characters in the string starting with the indexed position num1 and ending with the character before num2. The string itself is zero based, so the first character is in position 0.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint