Q. Which method returns the character at the specified index?
β
Correct Answer: (C)
charAt()
Explanation: The charAt() method returns the character at the specified index. Example:
var str = "Hello";
var res = str.charAt(0) //H