Javascript SubString() Function

The substring() function of string object returns the substring at the specified location from string. Use it for example to get substring from specified start location to end.

Syntax

Javascript SubString() Function Example1

Javascript SubString() Function Example2