Skip to content

WEBEU3 - JavaScript II - Austin Walela - #1

Merged
josenriagu merged 5 commits into
masterfrom
austin-walela
Aug 22, 2019
Merged

josenriagu merged 5 commits into
masterfrom
austin-walela

Conversation

@walela

@walela walela commented Aug 20, 2019

Copy link
Copy Markdown
Owner

No description provided.

@walela
walela requested a review from josenriagu August 20, 2019 10:57

@josenriagu josenriagu left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job Austin

Keep it up!

Comment thread assignments/callbacks.js
function contains(item, list, cb) {
// contains checks if an item is present inside of the given array/list.
// Pass true to the callback if it is, otherwise pass false.
return cb(list.includes(item));

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good job!

Comment thread assignments/closure.js
// 3- Return the `counter` function.
const counterMaker = limit => {
let count = 0;
return function counter() {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we may have a parametric counterMaker that takes in the limit and uses a while loop to count rather than have to call the function each time.

@josenriagu
josenriagu merged commit 3dccef7 into master Aug 22, 2019
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.

2 participants