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
}
console.log(cube(square, 3))
console.log(cube(callBack, 3))
```
### Returning function
@ -581,4 +581,4 @@ console.log(users); // sorted ascending
🎉 CONGRATULATIONS ! 🎉
[<< Day 8](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/08_Day/08_day_objects.md) | [Day 10 >>](#)
[<< Day 8](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/08_Day/08_day_objects.md) | [Day 10 >>](#)

Loading…
Cancel
Save