A Hitchhiker's Guide to the JavaScript String Substring() Function
The String substring() function in JavaScript is a simple one, but it can be a bit difficult to grasp especially for beginners.
Here I will try to explain it in very simple terms and will keep it only to the essentials - no advanced or weird use case...
webdevzucchini.hashnode.dev2 min read