Kyle Meltzer JavaScript-II - #127
Open
meltzerkyle wants to merge 9 commits into
Open
Conversation
DixieKorley
reviewed
Jun 26, 2018
| return param1 - param2; | ||
| }; | ||
| subtract(1,2); //? | ||
| let add = (param1, param2) => {return param1 + param2}; |
There was a problem hiding this comment.
This format works :), but be careful for when you have to make a longer function. Good start to the assignment 👍
added 8 commits
June 26, 2018 15:01
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
console.log()statements to check to see if your code does what it is supposed to do.consolestatements you can runnode /assignments/<fileName>and see what prints in your terminal. You can also use an online tool likeJSBin,REPL.it,JSFiddle, or even yourChrome developer console.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.The closure.js assignment showcases how variables can be used outside of functions to store state using closure.