---
title: "Discussion on \"Callbacks\" | Hashnode"
description: "Discussion on \"Callbacks\". In JavaScript, functions can be treated like any other variable. So, it can be passed into a function and returned from a function.\n\nA callback function is a function passed into another function as an argument.\n\nLet's look at an example.\n// callback..."
url: "https://hashnode.com/posts/callbacks/64552d78a910e2e073a7544f"
---

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

Discussion

# [Callbacks](https://alexkang.hashnode.dev/callbacks?utm_source=hashnode&utm_medium=feed)

In JavaScript, functions can be treated like any other variable. So, it can be passed into a function and returned from a function. A callback function is a function passed into another function as an argument. Let's look at an example. // callback...

May 5, 2023 · 2 min read · alexkang.hashnode.dev  
Updated May 11, 2023  
Read the article

-   [#callback](https://hashnode.com/tag/callback)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Alex Kang](https://hashnode.com/@alexkang)

@alexkang

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
