---
title: "Discussion on \"Understanding JavaScript Async: From Callbacks to Promises and the Event Loop\" | Hashnode"
description: "Discussion on \"Understanding JavaScript Async: From Callbacks to Promises and the Event Loop\". Callbacks\nA Callback is a function that is passes as an argument to another functions.\nfunction fetchData(callback) {\n    setTimeout(() => {\n        console.log(\"Data fetched\");\n        callback();"
url: "https://hashnode.com/posts/understanding-javascript-async-from-callbacks-to-promises-and-the-event-loop/699ee3e907208e46d79009f2"
---

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

Discussion

# [Understanding JavaScript Async: From Callbacks to Promises and the Event Loop](https://async-js-callbacks-promises.hashnode.dev/understanding-javascript-async-from-callbacks-to-promises-and-the-event-loop?utm_source=hashnode&utm_medium=feed)

Callbacks A Callback is a function that is passes as an argument to another functions. function fetchData(callback) { setTimeout(() => { console.log("Data fetched"); callback();

Feb 25 · 3 min read · async-js-callbacks-promises.hashnode.dev  
Read the article

## Written by

[paras pandey](https://hashnode.com/@paraspandey)

@paraspandey

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
