Skip to content

Kai Lovingfoss -wow, so amaze, so callback, commiting now cuz trevor said to do so - #433

Open
tryingtokeepup wants to merge 4 commits into
bloominstituteoftechnology:masterfrom
tryingtokeepup:master
Open

Kai Lovingfoss -wow, so amaze, so callback, commiting now cuz trevor said to do so#433
tryingtokeepup wants to merge 4 commits into
bloominstituteoftechnology:masterfrom
tryingtokeepup:master

Conversation

@tryingtokeepup

Copy link
Copy Markdown

No description provided.

let allCaps = [];
// let allCaps = []; this is poop javascript
// runners.forEach(poop => allCaps.push(poop.first_name.toUpperCase()); // you dont need map for looping an array - its used to assign new values, or to create a new array with new values
const allCaps = runners.map(poop => poop.first_name.toUpperCase());

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Classic.

Comment thread assignments/callbacks.js

contains(items, 'Pencil', function(result) {
console.log(result ? 'Pencil is there, yo!' : 'Pencil is not in the array');
console.log(result ? '${result} is there, yo!' : 'Nothing here, man...')

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pesky backticks.

Comment thread assignments/closure.js
@@ -1,14 +1,24 @@
// ==== Challenge 1: Write your own closure ====
// Write a simple closure of your own creation. Keep it simple!
let yodel = "yodel le something something, wooooooooo";

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I'll allow it

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