A simple explanation of Callback functions in JavaScript
Hi everyone! π In this post we will take a deep dive into callback functions.
Suppose you created a function called add2 which added 2 to the number it was passed:
function add2(num) {
return num = num + 2;
}
console.log(add2(3)); // 5
If we ...
sushmita.hashnode.dev3 min read