Skip to content

Oleksandr Stasyev#382

Open
CSDisciple wants to merge 3 commits into
bloominstituteoftechnology:masterfrom
CSDisciple:master
Open

Oleksandr Stasyev#382
CSDisciple wants to merge 3 commits into
bloominstituteoftechnology:masterfrom
CSDisciple:master

Conversation

@CSDisciple

Copy link
Copy Markdown

Finished arrays and callbacks

@CookieMonsta89

Copy link
Copy Markdown

Great job Olek! Mostly everything works. I would like for you to take a look at your callbacks because I noticed you aren't actually using a cb function. For example, how would you test your multiplyNums function? There isn't a cb function to pass through. I wrote an example of what it might look like if you were using a callback. Compare it to yours. Keep up the good work. ```let multi = (x, y) => {
return x * y;
}
function multiplyNums(x, y, cb) {
// multiplyNums multiplies two numbers and passes the result to the callback.

return cb(x,y);

}
console.log(multiplyNums(2,2,multi))```

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