The web page, "JavaScript String substr() Method" (https://www.w3schools.com/jsref/jsref_substr.asp), contains the following text:
Clearly, when start is negative, both of these statements cannot be correct. A quick test on my part determined that the first statement is wrong. Please confirm this for yourself, and update the document accordingly.