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

Erin Shaw
Erin Shaw
10,227 Points

How do I get past the first task considering compatibility issues?

I've tried doing the challenge in Chrome, FF and Safari, but can't get either innerText or textContent to work.

I get the same error messages for both:

line 7: newParagraph.innerText = "Javascript is enabled";

OR

line 7: newParagraph.textContent = "Javascript is enabled";

Bummer! The test of the newParagraph was 'Javascript is enabled' not 'JavaScript is enabled'

I'm not sure how to use the workaround provided for the edit button when I can't even get to the second task.

Thanks in advance, Erin

2 Answers

Erik McClintock
Erik McClintock
45,783 Points

Erin,

You are doing this correctly with .innerText; the problem lies in how specific the challenge is being. It wants you to capitalize the 's' in JavaScript, where you have 'Javascript' with a lowercase 's'.

You have:

newParagraph.innerText = "Javascript is enabled";

You want:

newParagraph.innerText = "JavaScript is enabled";

Fix this (stupid) problem, and the challenge should let you pass! They can be truly ridiculous and picky sometimes...

Happy coding!

Erik