Level: Mid-Level
Education: BA CS
Years of Experience (YOE): 4
Questions Asked:
Custom DOM Traversal:
Function Signature: getElementsByClassnameHierarchy(root, 'a>b>c')
Description:
- Find all elements with class
c - Ensure their parent has class
b, and their grandparent has classa - Traverse the DOM accordingly and return matching nodes
Tags:
Dropbox, Frontend Engineer, Phone Screen