Sushmita Pandey
Sushmita Pandey's Blog

Sushmita Pandey's Blog

A simple explanation of Callback functions in JavaScript

Nov 30, 20213 min read

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 ...

A simple explanation of Callback functions in JavaScript
Introduction to Destructuring in JavaScript
How to use React Hooks - 2 most commonly used Hooks explained ✨