JavaScript String slice

JavaScript String slice


JavaScript String slice() method
In this Tutorial, we will learn about JavaScript String slice() method with the help of following below:
The slice() method will return the part of the strings.
Syntax
var slicedStr() = str.slice(startIndex, EndIndex);
Output