πŸ“Š JavaScript
Q. Which method returns the character at the specified index?
  • (A) characterAt()
  • (B) getCharAt()
  • (C) charAt()
  • (D) None of the above
πŸ’¬ Discuss
βœ… 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

Explanation by: Yogesh
The charAt() method returns the character at the specified index. Example:

var str = "Hello";
var res = str.charAt(0) //H

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
190
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Yogesh
Publisher
πŸ“ˆ
86%
Success Rate