Skip to content
Permalink

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
Choose a base ref
...
head repository: erozonachi/JavaScript-II
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 8 commits
  • 4 files changed
  • 2 contributors

Commits on May 7, 2019

  1. Initial commit

    erozonachi committed May 7, 2019
    Configuration menu
    Copy the full SHA
    7c28082 View commit details
    Browse the repository at this point in the history
  2. 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.
    erozonachi committed May 7, 2019
    Configuration menu
    Copy the full SHA
    47f73af View commit details
    Browse the repository at this point in the history
  3. 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.
    erozonachi committed May 7, 2019
    Configuration menu
    Copy the full SHA
    8531dea View commit details
    Browse the repository at this point in the history
  4. Write your own closure

    Write a closure that return a function that when invoked decrements
    and returns a startCount variable.
    erozonachi committed May 7, 2019
    Configuration menu
    Copy the full SHA
    dd7c904 View commit details
    Browse the repository at this point in the history
  5. mvp complete

    erozonachi committed May 7, 2019
    Configuration menu
    Copy the full SHA
    44ee2aa View commit details
    Browse the repository at this point in the history
  6. Write closures

    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.
    erozonachi committed May 7, 2019
    Configuration menu
    Copy the full SHA
    3efcfda View commit details
    Browse the repository at this point in the history
  7. 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.
    erozonachi committed May 7, 2019
    Configuration menu
    Copy the full SHA
    366f592 View commit details
    Browse the repository at this point in the history

Commits on May 8, 2019

  1. Merge pull request #1 from erozonachi/james-eneh

    WEBEU2 - JavaScript II - James Eneh 🇳🇬
    maximesalomon authored May 8, 2019
    Configuration menu
    Copy the full SHA
    1493f80 View commit details
    Browse the repository at this point in the history
Loading