
This is a coding challenge I bombed in an interview one time. I was asked to traverse the dom and could not do it in the interview, so I spent the following hours creating this little project. I did not get the job, but I did rise to the challenge and did my best.
I used a search function that traverses the node children with a for...in loop and pushes matched values to an array. I synced the matched value array to an output state in order to show the returned values in real time on the page.
Platform:
Javascript || Typescript