JavaScript JavaScript and the DOM Making Changes to the DOM Getting and Setting Text with textContent and innerHTML

It Seems that I am missing something in the code but i have no idea what it is! Please help!!!!!

This is my code : https://w.trhou.se/wvf3mevlp0

1 Answer

Steven Parker
Steven Parker
177,727 Points

The selector for the element you named "p" is "p.description", which would select a paragraph element that has a class of "description".

But there aren't any paragraphs in the HTML that have that class. In the video, it gets added to the second paragraph at about 2:45.

Thanks worked