Welcome to the Treehouse Community
Looking to learn something new?
Task 1 is no longer passing.
Why is Task 1 no longer passing? I did not make any changes to the code for task 1.
const contentDiv = document.getElementById("content"); let newParagraph = document.createElement("p"); newParagraph.className = "panel"; contentDiv.appendChild("newParagraph");
<!DOCTYPE html> <html> <head> <title>DOM Manipulation</title> </head> <link rel="stylesheet" href="style.css" /> <body> <div id="content"> </div> <script src="app.js"></script> </body> </html>
Jennifer NordellTreehouse Teacher
Hi there, Kawi! You're doing great! The most common reason to get a "Task 1 is no longer passing" is due to a syntax error. At this point, none of your code can be interpreted which makes all the code invalid. That is what is happening here.
In your last line, you've surrounded
newParagraph in quotes so that it is now a string instead of the node held in the variable
newParagraph Removing the quotes causes this to pass all steps.
But that should be:
Hope this helps!