Algorithms and Data Structures · Junior · Question 52 of 75
Which structure is the DOM of a web page?
- 1A queue
- ✓Correct answer: A tree
- 3A hash table
Explanation
document is the root, every element has one parent and an ordered list of children. That's why DOM traversal (children, parentNode, querySelector) is tree traversal.