Skip to content

Kyle Meltzer JavaScript-II - #127

Open
meltzerkyle wants to merge 9 commits into
bloominstituteoftechnology:masterfrom
meltzerkyle:master
Open

Kyle Meltzer JavaScript-II#127
meltzerkyle wants to merge 9 commits into
bloominstituteoftechnology:masterfrom
meltzerkyle:master

Conversation

@meltzerkyle

@meltzerkyle meltzerkyle commented Jun 26, 2018

Copy link
Copy Markdown

JavaScript - II

With some basic JavaScript principles we can now expand our skills out even further by exploring array methods like: .forEach(), .map(), .reduce(), and .filter(). We can also look at how closures have a large impact on how we write JavaScript.

Assignment Description

  • 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 statements you can run node /assignments/<fileName> and see what prints in your terminal. You can also use an online tool like JSBin, REPL.it, JSFiddle, or even your Chrome developer console.
  • Once you finish the exercises in each file, commit your code, and push it to your fork.
  • Function Conversion
    You will see more and more arrow functions as you progress deeper into JavaScript. Use the function-conversion.js file as a helper challenge to showcase some of the differences between ES5 and ES6 syntax.

  • Array Methods
    Use .forEach(), .map(), .filter(), and .reduce() to loop over an array with 50 objects in it. The array-methods.js file contains several challenges built around a fund rasising 5k fun run event.

  • Read the instructions found within the file carefully to finish the challenges.
  • The last challenge is to come up with 3 problems to solve and then build a solution for them using any of the array methods listed above.
  • Share one of your favorite problem/solutions in your team meeting.
  • Complete each challenge presented before moving on to closure.
  • Closures
    The closure.js assignment showcases how variables can be used outside of functions to store state using closure.
  • Complete each challenge.

return param1 - param2;
};
subtract(1,2); //?
let add = (param1, param2) => {return param1 + param2};

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This format works :), but be careful for when you have to make a longer function. Good start to the assignment 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants