String.prototype.slice() Method in String Class of Javascript Syntax with Examples
2391 Views
Usage
string slice method works as substring. slice method takes two parameters one is starting index and end index of the characters to slice the string to a new string.