Polson needs to extract every character from a text string for email validation. Which JavaScript method is best suited?
Answer options
A
characterAt()
B
charAt()
C
getCharAt()
D
charCodeAt()
Correct answer: charAt()
Explanation
JavaScript's charAt(index) method returns the character at the specified position in a string, making it ideal for iterating through each character for validation.