SyntaxFix
Write A Post
Hire A Developer
Questions
For slice(start, stop), if stop is negative, stop will be set to:
slice(start, stop)
stop
string.length – Math.abs(stop)
rather than:
string.length – 1 – Math.abs(stop)