-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Checking mergeability…
Don’t worry, you can still create the pull request.
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: bloominstituteoftechnology/JavaScript-II
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: erozonachi/JavaScript-II
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 8 commits
- 4 files changed
- 2 contributors
Commits on May 7, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 7c28082 - Browse repository at this point
Copy the full SHA 7c28082View commit details -
Create and invoke higher order functions
Declare a higher order function called getLength() that takes two parameters; `arr` and `cb`, it should pass the length of the array into the callback and invoke it. Create a higher order function called last()that takes two parameters; `arr` and `cb`, it should pass the last item of the array into the callback and invoke it. Create a higher order function called sumNums() that takes three parameters; `x`, `y` and `cb`, it should pass the sum of `x` and `y` into the callback and invoke it. Create a higher order function called multiplyNums() that takes three parameters; `x`, `y` and `cb`, it should pass the product of `x` and `y` into the callback and invoke it. Create a higher order function called contains() that takes three parameters; `item`, `list` and `cb`, it should pass `true` or `false` into the callback based on whether or not `item` is present in `list` and invoke it.
Configuration menu - View commit details
-
Copy full SHA for 47f73af - Browse repository at this point
Copy the full SHA 47f73afView commit details -
Perform operations with array methods
Combine the first and last names into a new array called fullName. Convert each first name into all caps and log the result. Return an array named largeShirts that contains info about the runners that have a shirt size of L and log the result. Add up all the donations into a ticketPriceTotal and log the result. Extract runners with donations greater than 200 into a goldenDonors array and log the result. Extract all runners email into an emailList array and log the result to console. Assign the sum of the golden donations to a variable called, goldenDonationTotal and log the result to console.
Configuration menu - View commit details
-
Copy full SHA for 8531dea - Browse repository at this point
Copy the full SHA 8531deaView commit details -
Write a closure that return a function that when invoked decrements and returns a startCount variable.
Configuration menu - View commit details
-
Copy full SHA for dd7c904 - Browse repository at this point
Copy the full SHA dd7c904View commit details -
Configuration menu - View commit details
-
Copy full SHA for 44ee2aa - Browse repository at this point
Copy the full SHA 44ee2aaView commit details -
Create a counter function that returns a function, which when invoked increments and returns a counter variable. Create another counter function with an object that can increment and decrement a counter variable and return it.
Configuration menu - View commit details
-
Copy full SHA for 3efcfda - Browse repository at this point
Copy the full SHA 3efcfdaView commit details -
Create a higher order function - stretch
Create a called `removeDuplicates` that removes all duplicate values from a given array parameter and pass the duplicate free array to a callback function parameter.
Configuration menu - View commit details
-
Copy full SHA for 366f592 - Browse repository at this point
Copy the full SHA 366f592View commit details
Commits on May 8, 2019
-
Merge pull request #1 from erozonachi/james-eneh
WEBEU2 - JavaScript II - James Eneh 🇳🇬
Configuration menu - View commit details
-
Copy full SHA for 1493f80 - Browse repository at this point
Copy the full SHA 1493f80View commit details
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff master...master