- The point of these assignments is to take your knowledge of JavaScript and start putting into practice the principles learned throughout JavaScript I.
- 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.log()
statements open up the index.html file found in the assignments folder and use the developer tools to view the console.
**Note:**You could also run node /assignments/<fileName>
and see what prints in your terminal.
- Once you finish the exercises in each file, commit your code, and push it to your fork.
To better understand objects, you really just need to write more of them. The objects.js file contains several challenges centered around a theme of interns starting at a new job. The Human Resources team needs information about the new hires. Use your new found object skills answer vital questions for HR.
- Read the instructions found within the file carefully to finish the challenges.
- Complete each challenge presented before moving on to Arrays.
The arrays.js assignment takes us through a large data set of used cars. You have been asked to help a used car business with some customer requests based on their inventory. Use for loops and arrays to solve their problems.
- Utilize the the array
inventory
to complete your challenges - You are not permitted to use map, reduce, or filter to solve these problems. Only use a basic for loop.
- Complete each challenge presented before moving on to stretch.
- Arrow Function Syntax - Check out this awesome guide for ES6 arrow syntax. You will see more and more arrow functions as you progress deeper into JavaScript. Use the stretch-function-conversion.js file as a helper challenge to showcase some of the differences between ES5 and ES6 syntax.
- Move on to tomorrow's content and start studying callbacks, write a few of your own to get the hang of it.
- Look at array methods like .map(), .reduce(), .filter(). use them on the data in the arrays assignment to accomplish the same things you did with the ES5 for loop.