---
title: "Discussion on \"JavaScript Callback's?\" | Hashnode"
description: "Discussion on \"JavaScript Callback's?\". What is a callback function?\nA callback is a function that is passed as an argument to another function. This method is used to execute a function(passed as an argument) when the function has finished.\nThe JavaScript code executes synchronously accor..."
url: "https://hashnode.com/posts/javascript-callbacks/63aad0cad12b9f167d965463"
---

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

Discussion

# [JavaScript Callback's?](https://prashanthandel.hashnode.dev/javascript-callbacks?utm_source=hashnode&utm_medium=feed)

What is a callback function? A callback is a function that is passed as an argument to another function. This method is used to execute a function(passed as an argument) when the function has finished. The JavaScript code executes synchronously accor...

Dec 27, 2022 · 2 min read · prashanthandel.hashnode.dev  
Read the article

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

## Written by

[Prashant Handel](https://hashnode.com/@prashanthandel)

@prashanthandel · Indore, India

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

Frontend Developer

I'm a self taught web developer and a learner as well. I am sharing my experiences and knowledge here with a hope to help those who are beginners as sharing helps to grow together.

## Responses 1

Markdown supported · ⌘↵ to post

[Sheeraz Shaikh](https://hashnode.com/@sheeraz1022)

[Dec 27, 2022](https://hashnode.com/posts/javascript-callbacks/63aad0cad12b9f167d965463/comment/63aae328f42b1f067f8370d6)

Thanks for writing this blog post. Its a very basic example of callback and clearly shows the importance of using it.
