A slice() of substring(), please, with substr() on the side.
Slice
Slice() will copy part of a string into a new one, without changing the original.
It takes two parameters:
an index of the first character to include in the new string, and
an optional index of where the excluded part starts
So this means s...
raissa.hashnode.dev4 min read