Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Object-Oriented JavaScript: Challenge!
You have completed Object-Oriented JavaScript: Challenge!
Preview
See the solution for connecting the objects to the DOM
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
This file is where we'll listen for
user triggered events,
0:00
like if a player clicks their mouse or
presses a key.
0:02
These event handlers will prompt
responses from our objects.
0:05
Up until now, our game has existed
without a connection to the DOM.
0:09
It can't be seen on the screen or
interacted with.
0:13
Our app.js file is the bridge between
the visual aspect of the game,
0:16
the HTML and css, and
the objects we've created so far.
0:20
Inside the HTML for the game, there is
a button element with the id begin game.
0:24
The game should begin when
this button is clicked.
0:29
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up