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.