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: nobioma1/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.
  • 7 commits
  • 4 files changed
  • 2 contributors

Commits on May 7, 2019

  1. Solution on Array Methods

    - Use forEach to get data and concatenate firstname and lastname
    - use map to get data and return a new array of uppercase firstnames
    - use filter to get all user with their shirt size set to L
    - use reduce to sum all the donations
    nobioma1 committed May 7, 2019
    Configuration menu
    Copy the full SHA
    00a98fa View commit details
    Browse the repository at this point in the history
  2. Solutions on Callbacks

    - create callback display to test and console.log the results of our function solution
    - pass arr.length as an argument on getLength return callback  and pass array items and callback display as arguments on getLength invocation
    - pass the last item as an argument on last function return callback and pass array items and callback display as arguments on last function invocation
    - pass the sum of x and y as an argument on sumNums function return callback and pass the values of x, y  and callback display as arguments on sumNums invocation
    - pass the multiply of x and y as an argument on multiplyNums function return callback and pass the values of x, y  and callback display as arguments on multiplyNums invocation
    - use include array method to check if item is in array and pass the boolean value into the callback as an argument, invoking the contains function with the item to check, the items array and the callback function
    - update README.md
    nobioma1 committed May 7, 2019
    Configuration menu
    Copy the full SHA
    3b3a1b4 View commit details
    Browse the repository at this point in the history
  3. Challenge on closure

    - write simple example of a closure and invoke function
    - Counter Function:
        -- declare count variable and set it to zero
        -- return a function that increments the count variable.
        -- assign return value of counter function to new counter
        -- invoke new counter 4 times to show increment
    - Counter Factory:
        -- declare variable count and set it to 0
        -- counterFactory return object containing methods increment and decrement
        -- increment is a method that adds one to count and returns count
        -- decrement is a method that removes one from count and returns count
        -- set counterFactory return value to counterFactoryItems
        -- invoke increment 3times and decrememnt 2times to test functions.
    - update README.md
    nobioma1 committed May 7, 2019
    Configuration menu
    Copy the full SHA
    c1901ef View commit details
    Browse the repository at this point in the history
  4. Arrays Challenge 5:

    - output fullname and donation of top donors
    - total donations by donors from Skinix company
    - output all email for runners in the array
    - update README.md
    nobioma1 committed May 7, 2019
    Configuration menu
    Copy the full SHA
    18854a6 View commit details
    Browse the repository at this point in the history
  5. Callbacks: Remove Duplicates

    - use filter and index of methods to remove duplicates
    - pass the free array as a value on the callback
    - invoke removeDuplicates passing items array and a callback to output result as an argument
    nobioma1 committed May 7, 2019
    Configuration menu
    Copy the full SHA
    be666fb View commit details
    Browse the repository at this point in the history
  6. update Readme.md

    nobioma1 committed May 7, 2019
    Configuration menu
    Copy the full SHA
    5b97c07 View commit details
    Browse the repository at this point in the history

Commits on May 8, 2019

  1. Merge pull request #1 from nobioma1/noble-obioma

    Challenge on JavaScript II (Arrays, Closures, Callbacks)
    SorinC6 authored May 8, 2019
    Configuration menu
    Copy the full SHA
    6abea2f View commit details
    Browse the repository at this point in the history
Loading