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 trialJuhi Agarwal
617 PointsCan't ans the tricky question abt my first program
I try to write alert and document. Write command but don't know where i' m wrong!
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JavaScript Basics</title>
</head>
<body>
</body>
Document.write("welcome to my site");
</script>
</html>
2 Answers
Steven Parker
231,236 PointsYour JavaScript code needs to be between the script tags.
It looks like you accidentally deleted the opening tag that starts the script area. Either replace it, or start the challenge over and be careful not to remove the original tags as you add your code.
Also, JavaScript is case-sensitive, and you wrote "Document" (with capital 'D") when it should be "document".
Juhi Agarwal
617 PointsThanks so much. I try it again now.