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 Your First JavaScript Program

i don't understand what's it's asking me to do

i don't understand what's it's asking

  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>JavaScript Basics</title>
alert(how was your day);
// Write your code here.
document.write(thisis the atomfighter)
alert(thank you);

2 Answers

Tobias Mahnert
Tobias Mahnert
89,414 Points

you need to put the message displayed in the video into the document.write() function like this

 document.write("Welcome to my site")
Nolan Frazier
Nolan Frazier
Courses Plus Student 38,752 Points

The challenge is asking you to write the words on to the web page using JavaScript.

When using document.write() The document refers to the web page. Write is a method you can call on the document to insert text on to your web page. Make sure the you are passing a string as your argument to the document.write() method

See code below:

document.write("Welcome to my site")