- The objective of this challenge is to get you used to answering a few questions about JavaScript that are commonly asked in interviews.
- We also have some more reps for you to help hammer in the knowledge you've thus far learned.
- Answers to your written questions will be recorded in Answers.md
- This is to be worked on alone but you can use outside resources. You can reference any old code you may have, and the React Documentation, however, please refrain from copying and pasting any of your answers. Try and understand the question and put your responses in your own words. Be as thorough as possible when explaining something.
- Just a friendly Reminder Don't fret or get anxious about this, this is a no-pressure assessment that is only going to help guide you here in the near future. This is NOT a pass/fail situation.
Questions - Self Study - You can exercise your Google-Fu for this and any other Sprint Challenge in the future.
- Describe some of the differences between
.forEach&.map. - Name five different Types in JavaScript. A Type is something that can represent data. What is so special about Arrays?
- What is closure? Can you code out a quick example of a closure?
- Describe the four rules of the 'this' keyword. No need to provide examples about it this time :)
- Fork/Clone this project into a directory on your machine.
cdinto your forked local copy.- notice there is a
package.jsonfile included. remember that apackage.jsonfile is like a map of instructions for when you runnpm install - run
npm installto download all the dependancies you need for this project. - run
npm run watchto start your tests in watch mode. This command will listen for changes as you work through the problems and save yourchallenges.jsfile. As soon as you hit save after writing some changes, the linter will run, and the tests will run as well. - As soon as you have a test passing,
commityour changes to your fork so we can see an active commit stream. - Once you're done with all the tests, push your commits to your fork and submit a Pull-Request