---
title: "Discussion on \"What are callback functions in javascript\" | Hashnode"
description: "Discussion on \"What are callback functions in javascript\". Before diving into callback functions, we need to understand what is a function in javascript.\nWhat is a Function :\nIn JavaScript, a function is a block of code that is executed when it is called. Functions allow you to encapsulate a piece of code th..."
url: "https://hashnode.com/posts/what-are-callback-functions-in-javascript/63e89522b1f3e44840377af5"
---

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

Discussion

# [What are callback functions in javascript](https://junaidmuhammad.hashnode.dev/what-are-callback-functions-in-javascript?utm_source=hashnode&utm_medium=feed)

Before diving into callback functions, we need to understand what is a function in javascript. What is a Function : In JavaScript, a function is a block of code that is executed when it is called. Functions allow you to encapsulate a piece of code th...

Feb 12, 2023 · 4 min read · junaidmuhammad.hashnode.dev  
Read the article

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

## Written by

[Muhammad Junaid Ahmad](https://hashnode.com/@junaid405)

@junaid405 · Lahore, Pakistan

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

Software Engineer at Expertflow

I am a software engineer at Expertflow with a focus on using Node.js and JavaScript to develop high-quality solutions for clients. I am dedicated to continuously improving my skills and staying up-to-date with the latest technologies. Apart from it, I am passionate about writing and explaining the complex topics in a simple manner.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
