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 JavaScript Basics (Retired) Introducing JavaScript Review Introducing JavaScript

Sam Katz
Sam Katz
2,986 Points

document.write is the correct command but it doesn't take it

I can't get it to take document.write or the complete statement.

2 Answers

Hi Sam,

There are 2 text inputs there separated by the dot.

Are you putting "document" in the first one and "write" in the second one?

Hi there,

document.write("Hello World!");

What are you trying to achieve? Check console in inspect Element and find the error where is a mistake.

Accessing the DevTools To access the DevTools, open a web page or web app in Google Chrome. Either:

Select the Chrome menu Chrome Menu at the top-right of your browser window, then select Tools > Developer Tools. Right-click on any page element and select Inspect Element. The DevTools window will open at the bottom of your Chrome browser.