This JavaScript tutorial explains how to use the string method called substr() with syntax and examples. In JavaScript, substr() is a string method that is used to extract a substring from a string, given a start position and a length.

7003