MCQ PracticeSingle Best AnswerTopic: Javascript DOM & Event Handling MCQ
Q
Which of the following represents the best strategy for choosing elements?
Question ID
#5124
Subchapter
Javascript DOM & Event Handling MCQ
Action
Choose one option below
Choose Your Answer
Click an option to check whether your answer is correct.
A
querySelectorAll()
✔✖
B
querySelector()
✔✖
C
queryAll()
✔✖
D
query() ✔✖
A
Correct Answer: A
Explanation
querySelectorAll() is a powerful method for selecting elements within a document
It is used by client-side JavaScript programs to select the elements that will be manipulated.