Javascript SubStr() Function

The substr() function of string object returns a substring beginning at the specified location and length. Use it for example to get sub string start from specified location and length.

Syntax

Javascript SubStr() Function Example1

Javascript SubStr() Function Example2