Javascript Methods JavaScript Reference

Note:
Returns part of a String object.
    
Syntax:
    
stringName.substring(param1, param2)
Parameters:
    param1   Required; start index.
    param2   Required; end index.