Quiz on ES6 String Prototype Methods



1. What method is used to convert a string to lowercase in ES6?
2. Which method returns the character at a specified index in a string?
3. How can you determine the length of a string in ES6?
4. What method would you use to find the index of a substring within a string?
5. Which method is used to extract a section of a string and return it as a new string?

Advertisements