- explain the four principles of the 'this' keyword and demonstrate each explanation with an example of their uses
- describe, and use prototypes, constructor functions the new keyword, and pseudo-classical inheritance to build objects
In order to complete these tasks you will need your newly acquired knowledge of constructor functions, prototypes, and the this
keyword.
Using VSCode and Command Line:
- Fork the repo
- Clone your forked version of the repo
- cd into your repo and create a branch with your first and last name
- open the terminal in your vs code and type
npm install
- next type
npm run test
in your terminal - Complete your work making regular commits, once you have all your tests passing and you are ready to submit your work please see canvas for instructions on how to submit
Find the file index.js
and complete tasks 1, 2 and 3 until all of your tests pass.
There is an additional task 4 which requires written explanations and has no tests.
If you run into trouble while coding, fight the good fight for 20 minutes and then get on the help channel. Remember to formulate your help request in a professional manner - like you would at the job - by including error messages, screenshots, and any other pertinent information about the problem, as well as what things you have attempted already while trying to solve it.
Open a second terminal inside of your project by clicking on the split terminal icon
Inside of your second terminal type npm start
You will be running your tests in one terminal and debugging in the other. As you work on your code you should make use of console.log
to check your progress and debug.
There are stretch goals found throughout index.js
. Do not start work on these until you have finished MVP.
Please submit your project via codegrade by following these instructions