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.
what did I do wrong
Your document.write() statement is outside of your
Also you forgot your console.log() statement for "Begin Program".
Your code should look something like this...
Bob Sutherton20,160 Points
Console.log() is used to log messages is to your browser's console, which can be accessed with ctrl+shift+j on a windows computer like I use. On a mac, I think it is cmd+option+j or something like that.
So one of the things console.log() allows you to do is to check whether you have arrived at a certain point in your script.
<div> <P>Hello World!</p> </div>
<script> alert("Hello World!"); </script>
this is the structure for elements. I hope this helps. If you have any questions please feel free to ask us.