Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Interactive Web Pages with JavaScript Traversing and Manipulating the DOM with JavaScript Modifying Elements

Samarth Shrivastav
PLUS
Samarth Shrivastav
Courses Plus Student 3,285 Points

Code Challenge Not Accepting Correct Code

In Task No. 1 the Bummer! Message shows up saying, "The text of the newParagraph was 'Javascript is enabled' not 'JavaScript is enabled'" I have tried using innerHTML and innerText but both of them Show The same message.

1 Answer

Arturo Alviar
Arturo Alviar
15,739 Points

Make sure the s in script is capitalized Like so:

newParagraph.innerHTML = "JavaScript is enabled";
Samarth Shrivastav
Samarth Shrivastav
Courses Plus Student 3,285 Points

Greetings! Mr. Arturo! Nope I did it with the "=" assignment operator. And yes, the "S" in "JavaScript" has to be capitalized. Thank You! Regards, Samarth