Read these instructions carefully. Understand exactly what is expected before starting this Sprint Challenge.
This challenge allows you to practice the concepts and techniques learned over the past week and apply them in project. This Sprint explored JavaScript Fundamentals. During this Sprint, you studied array methods, this keyword, prototypes, and class syntax. In your challenge this week, you will demonstrate proficiency by completing a survey of JavaScript problems.
This is an individual assessment. All work must be your own. Your challenge score is a measure of your ability to work independently using the material covered through this sprint. You need to demonstrate proficiency in the concepts and objectives introduced and practiced in preceding days.
You are not allowed to collaborate during the sprint challenge.
You have three hours to complete this challenge. Plan your time accordingly.
The index.js file contains all of your challenges. Please review it in full before answering the questions. If you complete the stretch goals please leave them in your file but commented out so that they do not affect the MVP tasks
In meeting the minimum viable product (MVP) specifications listed below, you should have all tests passing. You can console.log to check your work and ensure you are submitting the correct results
Commit your code regularly and meaningfully. This helps both you (in case you ever need to return to old code for any number of reasons) and your team lead as the evaluate your solution.
(please edit this file and write your answer below each question. In addition, you may also review these questions with your mentor)
Demonstrate your understanding of this week's concepts by answering the following free-form questions.
Edit this document to include your answers after each question. Make sure to leave a blank line above and below your answer so it is clear and easy to read.
-
Briefly compare and contrast
.forEach
&.map
(2-3 sentences max) -
Explain the difference between a callback and a higher order function.
-
Can you explain what a closure is and how you used it in the counter function?
-
Describe the four principles of the 'this' keyword.
-
Why do we need super() in an extended class?
You are expected to be able to answer questions in these areas. Your responses contribute to your Sprint Challenge grade.
Follow these steps to set up your project:
- Fork the repo
- Clone your forked version of the repo
- cd into your repo and create a branch with your first and last name NOTE: Tests will run for the JavaScript portion of this challenge only
- open the terminal in your vs code and type
npm install
- next type
npm run test:watch
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
Your finished project must include all of the following requirements
This challenge takes a look at closures as well as scope.
- Find this challenge in the index.js file. Read the instructions carefully!
Test your knowledge of advanced array methods and callbacks.
- Find this challenge in the index.js file. Read the instructions carefully!
Create constructors, bind methods, and create cuboids in this prototypes challenge.
- Find this challenge in the index.js file. Read the instructions carefully!
Once you have completed the prototypes challenge, it's time to convert all your hard work into classes.
- Find this challenge in the index.js file. Read the instructions carefully!
In your solutions, it is essential that you follow best practices and produce clean and professional results. Schedule time to review, refine, and assess your work and perform basic professional polishing including spell-checking and grammar-checking on your work. It is better to submit a challenge that meets MVP than one that attempts too much and does not.
There are a few stretch problems found throughout the files, don't work on them until you are finished with MVP requirements! Please remember to comment out your stretch goals before you submit
See Canvas for submission instructions