Copy the included constructors.js
to a new project. Add an index.html that includes it. Answer all the questions and upload to gh-pages.
Keep in mind in the examples in constructors.js
I need to be able to test them in gh-pages on the console. Also make sure there are no javascript errors and check your code in js hint. Finally make sure it is formatted/indented correctly. Code is in place that validates each answer. It will currently say: Assertion failed
for each question. Once you answer the question correctly that will go away. Use this to check your work.
After completing this assignment, you should…
- Understand how constructor functions work in JavaScript
After completing this assignment, you be able to effectively use
- A repo containing at least:
- the
constructors.js
file - a branch called
gh-pages
- the
- No JSHint warnings or errors
In the constructors.js
there is a bonus question at the bottom. This is your hard mode.
If you are finished with your normal mode before 7pm I would urge you to try the hard mode.