Every great programmer starts learning a new langauge with a "Hello World" document. Lets start and do this with JavaScript!
Start by creating a barebones HTML structure; and then add a script tag. We will be working inside these tags. Add the following line:
Let's talk about the structure! The "document" is refering to the document, followed by it's argument which is to write. We are then writing whatever is inside the qoutes. This is kown as a string. Every JS statement must end with a colon. So what if we want to make it a bit more complex?
To get some practice with proper syantax, let's try adding some alerts.
All of the alerts will load before the rest of the page. If you open the page, you should see an alert that says "Hello World" and then after clicking okay, you'll see our text on the page.