---
title: "Discussion on \"Async JavaScript\" | Hashnode"
description: "Discussion on \"Async JavaScript\". Callbacks\nA callback is simply a function passed as an argument to another function.It is used when you want one function to run only after another has finished.\nWhy do we need callbacks?\nJavaScript can do only one thing at a time. So if a task takes..."
url: "https://hashnode.com/posts/async-javascript/692d96b873a1e5cce264c755"
---

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

Discussion

# [Async JavaScript](https://farukh-async-js.hashnode.dev/async-javascript?utm_source=hashnode&utm_medium=feed)

Callbacks A callback is simply a function passed as an argument to another function.It is used when you want one function to run only after another has finished. Why do we need callbacks? JavaScript can do only one thing at a time. So if a task takes...

Dec 1, 2025 · 4 min read · farukh-async-js.hashnode.dev  
Read the article

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

## Written by

[Farukh Khan](https://hashnode.com/@farukhkhan7)

@farukhkhan7

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
