---
title: "Discussion on \"Callbacks in JavaScript: Why They Exist\" | Hashnode"
description: "Discussion on \"Callbacks in JavaScript: Why They Exist\". Functions as Values\nWe are familiar with functions in JavaScript.\nLet's take an example of an add function.\nfunction add(a, b) {\n    return a + b;\n}\n\nconsole.log(add(2, 3));\n\nOutput\n5\n\nJust like we ca"
url: "https://hashnode.com/posts/callbacks-in-javascript-why-they-exist/6a231f1e857478689f66b1cb"
---

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

Discussion

# [Callbacks in JavaScript: Why They Exist](https://async-javascript.hashnode.dev/callbacks-in-javascript-why-they-exist?utm_source=hashnode&utm_medium=feed)

Functions as Values We are familiar with functions in JavaScript. Let's take an example of an add function. function add(a, b) { return a + b; } console.log(add(2, 3)); Output 5 Just like we ca

Mar 31 · 5 min read · async-javascript.hashnode.dev  
Read the article

-   [#chaicode](https://hashnode.com/tag/chaicode)
-   [#chaicode-webdev-cohort-2026](https://hashnode.com/tag/chaicode-webdev-cohort-2026)
-   [#webdevelopment](https://hashnode.com/tag/webdevelopment)
-   [#callback-hell](https://hashnode.com/tag/callback-hell)
-   [#callback-in-js](https://hashnode.com/tag/callback-in-js)
-   [#asynchronous-javascript](https://hashnode.com/tag/asynchronous-javascript)

## Written by

[Janardhan Verma](https://hashnode.com/@janardan-v)

@janardan-v · Delhi, India

  
[View profile](https://hashnode.com/@janardan-v)

Aspiring software developer documenting my journey in building, learning, and understanding technology. Computer Science student at NSUT Delhi.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
