Update javascript.md

Updated comment for the callback function.
This commit is contained in:
J Govind Yeswanth authored and GitHub committed 2025-04-24 10:41:49 +05:30
1 parent 2c845c539f
commit 8675a6999f
1 file changed
+1 -1
+1 -1
View File
@@ -785,7 +785,7 @@ let printMsg = (evenFunc, num) => {
// Pass in isEven as the callback function
printMsg(isEven, 4);
// => The number 4 is an even number: True.
// => 4 is an even number: True.
```
### Array.reduce()