Skip to content

Brandon Campbell - #448

Open
BrandCam wants to merge 2 commits into
bloominstituteoftechnology:masterfrom
BrandCam:master
Open

Brandon Campbell#448
BrandCam wants to merge 2 commits into
bloominstituteoftechnology:masterfrom
BrandCam:master

Conversation

@BrandCam

Copy link
Copy Markdown

Call backs hurt my brain, but ill get it by tomorrow.

@johnoro johnoro 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.

Awesome work; try to attempt some of the stretch!

Comment thread assignments/callbacks.js

getLength(items, function(length){
console.log(length)
});

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You could forego this extra function wrapping console.log by just using log as your callback function (and this applies elsewhere in your code, too):

getLength(items, console.log);

This works since log is just a function; specifically it is a method on the console object.

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