Callback example fix

although the function does square, we called it callBack
pull/44/head
Patrick Njuguna 6 years ago committed by GitHub
parent 6adedd1b7b
commit e80ab6ddd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -63,7 +63,7 @@ function cube(callback, n) {
return callback(n) * n return callback(n) * n
} }
console.log(cube(square, 3)) console.log(cube(callBack, 3))
``` ```
### Returning function ### Returning function

Loading…
Cancel
Save