---
title: "Discussion on \"Async: From Callbacks to Promises and the Event Loop\" | Hashnode"
description: "Discussion on \"Async: From Callbacks to Promises and the Event Loop\". Callbacks in JavaScript\nDefinition :\nA callback is a function that is passed as an argument to another function and is executed after a task is completed\nExample :\nfunction greet(name, callback) {"
url: "https://hashnode.com/posts/async-from-callbacks-to-promises-and-the-event-loop/699eef1607208e46d79558d9"
---

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

Discussion

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

Callbacks in JavaScript Definition : A callback is a function that is passed as an argument to another function and is executed after a task is completed Example : function greet(name, callback) {

Feb 25 · 6 min read · async-callbacks-promises-eventloop.hashnode.dev  
Read the article

## Written by

[Chandra Sekhar](https://hashnode.com/@Chandrasekhar0583)

@Chandrasekhar0583

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
