---
title: "Discussion on \"JavaScript Async \" | Hashnode"
description: "Discussion on \"JavaScript Async \". 1️ What is a Callback?\nA callback is a function passed as an argument to another function. It runs after some task is completed.\nWe use callbacks mainly for:\n\nAPI calls\n\nReading files\n\nTimers\n\nDatabas"
url: "https://hashnode.com/posts/javascript-async/699ee16707208e46d78ee454"
---

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

Discussion

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

1️ What is a Callback? A callback is a function passed as an argument to another function. It runs after some task is completed. We use callbacks mainly for: API calls Reading files Timers Databas

Feb 25 · 6 min read · javascriptasync35184.hashnode.dev  
Read the article

## Written by

[Rohit Sharma](https://hashnode.com/@rohit35184)

@rohit35184

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

Learn Till Death

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
