Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript JavaScript Basics (Retired) Introducing JavaScript Your First JavaScript Program

In the 11th, is where typed 'Welcome to my site', I previewed and the phrase appeared.. but did not get it right, help?

I am wondering why I am not getting the work right when the phrase 'Welcome to mysite' appears after appearing. What am I doing wrong?

Mark Buchthal
Mark Buchthal
14,165 Points

While there is more than 1 way to do this, it appear that this challenge is looking for the 'document.write' method. Also, ensure the text is correct (my site vs. mysite).

thank you, I completed the challenge

1 Answer

I have made the assignment again. they ask for it to be written to the web page (** document.write ) with the text ** Welcome to my site.

          document.write("Welcome to my site");