JavaScript JavaScript and the DOM Traversing the DOM Sibling Traversal

Casey Dixon
Casey Dixon
6,655 Points

I'm not really sure what the directive is here. Can someone please elaborate on what is expected?

I'm not really sure what the directive is here. Can someone please elaborate on what is expected?

1 Answer

Steven Parker
Steven Parker
171,342 Points

Your task is to fill in the blank line (5) with a line of code that uses a DOM traversal method to get from the button element (e.target) to the paragraph element right before it, and then add a class of "highlight" to it.