Below is the example of the string.slice() Method.
Geeks for Geeks
Parameter: This method uses two-parameter startingindex( from which index, the string should be started) and endingindex (before which index, the string should be included).
Return Values: It returns a part or a slice of the given input string.
Ram i am is going to school is going to schoo going to school
Geeks for Geek
- Chrome 1 and above
- Edge 12 and above
- Firefox 1 and above
- Internet Explorer 4 and above
- Opera 4 and above
- safari 1 and above