Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
ab188ca
initial commit
losephjambert Aug 20, 2019
e102012
pr open, work begins
losephjambert Aug 20, 2019
63a1abe
adds return statements to all HOFs
losephjambert Aug 20, 2019
5d92753
adds test case to getLength
losephjambert Aug 20, 2019
82a008f
adds test case to last()
losephjambert Aug 20, 2019
32f1b10
adds test case to sumNums
losephjambert Aug 20, 2019
8825ea2
adds test case to multiplyNums
losephjambert Aug 20, 2019
f91c2a4
adds test case to contains
losephjambert Aug 20, 2019
144c453
adds declared callbacks with tests
losephjambert Aug 20, 2019
57b7b26
updates readme
losephjambert Aug 20, 2019
47e5a67
reformats runners data
losephjambert Aug 20, 2019
db3b71f
solves forEach challenge
losephjambert Aug 20, 2019
81a6133
solves .map() challenge
losephjambert Aug 20, 2019
179b161
solves .filter() challenge
losephjambert Aug 20, 2019
d2f6c72
solves .reduce() challenge
losephjambert Aug 20, 2019
116ff8c
updates readme
losephjambert Aug 20, 2019
a57c10f
adds a closure example
losephjambert Aug 20, 2019
6d68683
updates readme
losephjambert Aug 20, 2019
1f37c44
solves stretch problem
losephjambert Aug 20, 2019
99c7665
completes callbacks stretch
losephjambert Aug 20, 2019
676e398
adds custom problem to array-methods
losephjambert Aug 20, 2019
db56a16
sets up problem 3 for array-methods
losephjambert Aug 20, 2019
f310ccb
solves custom problem 3
losephjambert Aug 20, 2019
d56ad13
changes ids to nametags and id to name_tag
losephjambert Aug 20, 2019
49c09f5
updates readme
losephjambert Aug 20, 2019
b782e93
updates readme
losephjambert Aug 20, 2019
c9e987a
adds push to removeDuplicates test cases
losephjambert Aug 21, 2019
2263d07
small refactor on reaceDayIds to use map instead of forEach
losephjambert Aug 22, 2019
d077767
changes output object in raceDayIds
losephjambert Aug 22, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 20 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,53 +1,52 @@

# JavaScript - II

With some basic JavaScript principles in hand, we can now expand our skills out even further by exploring callback functions, array methods, and closure. Finish each task in order as the concepts build on one another.
With some basic JavaScript principles in hand, we can now expand our skills out even further by exploring callback functions, array methods, and closure. Finish each task in order as the concepts build on one another.

## Set Up The Project With Git

**Follow these steps to set up and work on your project:**

* [ ] Create a forked copy of this project.
* [ ] Add your team lead as collaborator on Github.
* [ ] Clone your OWN version of the repository (Not Lambda's by mistake!).
* [ ] Create a new branch: git checkout -b `<firstName-lastName>`.
* [ ] Implement the project on your newly created `<firstName-lastName>` branch, committing changes regularly.
* [ ] Push commits: git push origin `<firstName-lastName>`.
- [x] Create a forked copy of this project.
- [x] Add your team lead as collaborator on Github.
- [x] Clone your OWN version of the repository (Not Lambda's by mistake!).
- [x] Create a new branch: git checkout -b `<firstName-lastName>`.
- [x] Implement the project on your newly created `<firstName-lastName>` branch, committing changes regularly.
- [x] Push commits: git push origin `<firstName-lastName>`.

**Follow these steps for completing your project.**

* [ ] Submit a Pull-Request to merge <firstName-lastName> Branch into master (student's Repo). **Please don't merge your own pull request**
* [ ] Add your team lead as a reviewer on the pull-request
* [ ] Your team lead will count the project as complete by merging the branch back into master.
- [x] Submit a Pull-Request to merge <firstName-lastName> Branch into master (student's Repo). **Please don't merge your own pull request**
- [x] Add your team lead as a reviewer on the pull-request
- [ ] Your team lead will count the project as complete by merging the branch back into master.

## Task 1: Higher Order Functions and Callbacks

This task focuses on getting practice with higher order functions and callback functions by giving you an array of values and instructions on what to do with that array.

* [ ] Review the contents of the [callbacks.js](assignments/callbacks.js) file. Notice you are given an array at the top of the page. Use that array to aid you with your functions.
- [x] Review the contents of the [callbacks.js](assignments/callbacks.js) file. Notice you are given an array at the top of the page. Use that array to aid you with your functions.

* [ ] Complete the problems provided to you but skip over stretch problems until you are complete with every other JS file first.
- [x] Complete the problems provided to you but skip over stretch problems until you are complete with every other JS file first.

## Task 2: Array Methods

Use `.forEach()`, `.map()`, `.filter()`, and `.reduce()` to loop over an array with 50 objects in it. The [array-methods.js](assignments/array-methods.js) file contains several challenges built around a fundraising 5K fun run event.

* [ ] Review the contents of the [array-methods.js](assignments/array-methods.js) file.
- [x] Review the contents of the [array-methods.js](assignments/array-methods.js) file.

* [ ] Complete the problems provided to you but skip over stretch problems until you are complete with every other JS file first.
- [x] Complete the problems provided to you but skip over stretch problems until you are complete with every other JS file first.

* [ ] Notice the last three problems are up to you to create and solve. This is an awesome opportunity for you to push your critical thinking about array methods, have fun with it.
- [x] Notice the last three problems are up to you to create and solve. This is an awesome opportunity for you to push your critical thinking about array methods, have fun with it.

## Task 3: Closures

We have learned that closures allow us to access values in scope that have already been invoked (lexical scope).
We have learned that closures allow us to access values in scope that have already been invoked (lexical scope).

**Hint: Utilize debugger statements in your code in combination with your developer tools to easily identify closure values.**

* [ ] Review the contents of the [closure.js](assignments/closure.js) file.
* [ ] Complete the problems provided to you but skip over stretch problems until you are complete with every other JS file first.
- [x] Review the contents of the [closure.js](assignments/closure.js) file.
- [ ] Complete the problems provided to you but skip over stretch problems until you are complete with every other JS file first.

## Stretch Goals

* [ ] Go back through the stretch problems that you skipped over and complete as many as you can.
* [ ] Look up what an IIFE is in JavaScript and experiment with them
- [ ] Go back through the stretch problems that you skipped over and complete as many as you can.
- [ ] Look up what an IIFE is in JavaScript and experiment with them
Loading