Skip to content

Add Task 3: Closures Stretch Problems - #1

Open
Catherinesjkim wants to merge 8 commits into
masterfrom
catherine-kim
Open

Add Task 3: Closures Stretch Problems#1
Catherinesjkim wants to merge 8 commits into
masterfrom
catherine-kim

Conversation

@Catherinesjkim

Copy link
Copy Markdown
Owner

Because:

  • Completed the stretch problems.

This commit:

  • Challenge 2: Implemented a "counter maker" function.
  • Challenge 3: Made "counter maker" more sophisticated. It has a 'limit' parameter. Any counters I made with 'counterMaker' will refuse to go over the limit, and start back at 1.
  • Challenge 4: Created a counter function with an object that can increment and decrement.

Catherine Kim and others added 5 commits October 4, 2019 12:55
Because:
- This task focuses on getting practice with higher order functions and callback functions by giving us an array of values and instructions on what to do with that array

This commit:
-Completed the problems provide to me but skipped over stretch problems until I'm complete with every other JS file first.
Because:
- To use .forEach(), .map(), .filter(), and .reduce() to loop over an array with 50 objects in it.
This commit:
completed the problems provided to me.
- No stretch problems on array-methods.js file.
- Completed the last three problems that I created and solved. It pushed my critical thinking about array methods.
Because:
- We learned that closures allow us to access values in scope that have already been invoked (lexical scope).
-This commit:
- Completed the problems provided to me but skipped over stretch problems.
Because:
- I would like get 3 points for this assignment

This commit:
- Learned how to remove dupes from an array by using Set and Spread (...) syntax while passing the dupe free array to the cb function.
- Didn't mutate the original array.
@Catherinesjkim
Catherinesjkim requested a review from dhamano October 6, 2019 20:47
Catherine Kim added 3 commits October 6, 2019 16:56
Because:
- There was a syntax issue on my VS Code

This commit:
- Challenge 2, 3, & 4 were implemented and working well with no syntax issue.
Because:
- console.log was missing at the end

This Commit:
- Changed from <= to < limit in the while loop.
- Added console.log(counterMaker()); after the function.
Because:
= The higher order functions were not added on a few callbacks.js challenges so they are added now here.
- Added IIFE and experiment with them on closure.js Challenge 3 stretch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant