String slice() method returns part of the string in a new string. It using the start and end parameters to specify the part of the string to extract.
Sting indexOf() method returns the position of the first occurrence of a specified value in a string.
Login in to like
Login in to comment