Answers for "substr(start,length) - the second parameter is negative"

0

substr(start,length) - the second parameter is negative

let str = "Apple, Banana, Kiwi";

str.substr(-4)    // Returns Kiwi
Posted by: Guest on July-12-2021

Code answers related to "substr(start,length) - the second parameter is negative"

Code answers related to "Javascript"

Browse Popular Code Answers by Language