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 trialNolan Tatum
43 Pointsi don't understand what's it's asking me to do
i don't understand what's it's asking
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JavaScript Basics</title>
</head>
alert(hello);
<body>
</body>
alert(how was your day);
<script>
// Write your code here.
document.write(thisis the atomfighter)
</script>
alert(thank you);
</html>
2 Answers
Tobias Mahnert
89,414 Pointsyou need to put the message displayed in the video into the document.write() function like this
document.write("Welcome to my site")
Nolan Frazier
Courses Plus Student 38,752 PointsThe 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")