Web Technology
Accenture PrimermediumWeb TechnologyJavascript

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.

Related Accenture Web Technology questions

Practice more Accenture Web Technology questions

PrimerDumps has 1400+ primer questions, 2026 mocks and coding hands-on — all free.