Bummer! This is just a preview. You need to be signed in with a Treehouse account to view the entire video.
Getting to interact with code like this is great exposure.
As we learn we'll dissect the code and find out about why this code works.
Now we have to start somewhere.
HTML document using script tags.
If you remember in the car sounds course we used this method because we
You can see we only have three buttons and they only need to do one thing,
which is play sound.
These functions look a lot like the functions in
the project we're working on now.
Only here we have a lot more Java script.
Because of that,
You can see we've attached the script file down here.
It's best to always to put your script element at the end of
the HTML file just before the closing body tag, to ensure your page loads quickly.
All right, now that we know where we're going and how we got there,
let's move on to structure and function, and the structure of functions.
You need to sign up for Treehouse in order to download course files.Sign up