We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8eda36 commit 1481cfbCopy full SHA for 1481cfb
assignments/callbacks.js
@@ -40,7 +40,11 @@ last(items, function(last) {
40
41
function sumNums(x, y, cb) {
42
// sumNums adds two numbers (x, y) and passes the result to the callback.
43
+ return cb(x + y);
44
}
45
+sumNums(4, 6, function(sum) {
46
+ console.log(sum);
47
+})
48
49
function multiplyNums(x, y, cb) {
50
// multiplyNums multiplies two numbers and passes the result to the callback.
0 commit comments