Skip to content

Sofia levin: MVP - #1

Merged
AsaOfDiamonds merged 5 commits into
masterfrom
sofia-levin
May 31, 2019
Merged

AsaOfDiamonds merged 5 commits into
masterfrom
sofia-levin

Conversation

@sofialevin

Copy link
Copy Markdown
Owner

No description provided.

@sofialevin
sofialevin requested a review from AsaOfDiamonds May 26, 2019 05:31
runners.forEach(function(runners) {
fullName.push(runners.first_name + ' ' + runners.last_name)
})

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

great job, I would encourage you to look at string template literals


totalTshirts.push("XS: " + xsShirts, "S: " + sShirts, "M: " + mShirts, "L: " + lShirts, "XL: " + xlShirts, "2XL: " + xxlShirts, "3XL: " + xxxlShirts)
console.log(totalTshirts)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

good job going above and beyond what you needed to do

Comment thread assignments/callbacks.js
contains('Gum', items, function(result) {
console.log(result);
})

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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.
for (let i = 0; i < list.length; i++) {
if (list[i] === item) {
return cb(true);
}
}
return cb(false);
}

contains('Bats', items, function(flag) {
console.log(flag); // should be false
});

contains('Notebook', items, function(flag) {
console.log(flag); // should be true
});

@AsaOfDiamonds AsaOfDiamonds left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

good job on your project. I put some comments in your code below and a few examples

@AsaOfDiamonds
AsaOfDiamonds merged commit 3450eca into master May 31, 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