Level: IC3
Education: Master
Years of Experience: 3
Questions Asked:
How to Implement getElementsByID()
Without Using getElementById()
?
The function should search the DOM tree for an element with the specified id
, just like element.getElementById(targetID)
, but without using the built-in method.
(Interviewed in Feb 2025)