The JavaScript substr method is not part of the core JavaScript language and is not recommended to use. In this project I define substr using the standard substring method. There are 2 versions.
This post is about how to effectively use the String.prototype.substring() method in JavaScript. We go through a few examples to understand how it works, play around to observe a few patterns and ...