JavaScript String Methods - part 1
.length
string.length
returns the length of a string
.slice()
string.slice(start, end)
returns the extracted part in a new string, end not included
If a parameter is negative, the position is counted from the end of the string.
If you omit the second...
blog.yangzheng.ca1 min read