---
title: "Discussion on \"A simple explanation of Callback functions in JavaScript\" | Hashnode"
description: "Discussion on \"A simple explanation of Callback functions in JavaScript\". Hi everyone! 👋 In this post we will take a deep dive into callback functions. \nSuppose you created a function called add2 which added 2 to the number it was passed:\nfunction add2(num) {\n    return num = num + 2;\n}\n\nconsole.log(add2(3)); // 5\n\nIf we ..."
url: "https://hashnode.com/posts/callback-functions-in-javascript/61a65db5be456923c52ba888"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [A simple explanation of Callback functions in JavaScript](https://sushmita.hashnode.dev/callback-functions-in-javascript?utm_source=hashnode&utm_medium=feed)

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

Nov 30, 2021 · 3 min read · sushmita.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Sushmita Pandey](https://hashnode.com/@sushmita)

@sushmita · India

  
[View profile](https://hashnode.com/@sushmita)

Frontend Developer | Tech blogger | JavaScript Fanatic

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
