This challenge focuses on using the this
keyword as well as getting comfortable with prototypes by building out a fantasy themed video game.
- Fork/Clone this repository.
- Complete all the exercises as described inside each assignment file.
- Use
console.log()
statements to check to see if your code does what it is supposed to do. - To test your
console
statements you can runnode /assignments/<fileName>
and see what prints in your terminal. You can also use an online tool likeJSBin
,REPL.it
,JSFiddle
, or even yourChrome developer console
. - Once you finish the exercises in each file, commit your code, and push it to your fork.
Having a solid understanding of how this
works will give you a huge advantage when you start building with more advanced frameworks. Use the this.js file to traverse through a few this
problems.
The prototype challenge will focus on building prototypes for a fantasy themed game that includes mages, swordsmen, and archers. Follow the prototypes.js instructions closely to create the beginnings of what could be an awesome JavaScript game.
- Read the instructions found within the file carefully to finish the challenges.
- Remember to uncomment the objects and console logs to test your work at the bottom of the page.