---
title: "Discussion on \"Documenting a callback function in JSDoc\" | Hashnode"
description: "Discussion on \"Documenting a callback function in JSDoc\". A callback function is a function passed into another function as an argument, which is then invoked inside the outer function to complete some kind of routine or action.\n-- MDN: Callback function\n\nCallbacks are used all over in JavaScript, a good ex..."
url: "https://hashnode.com/posts/documenting-a-callback-function-in-jsdoc/65a14320f5c0c79c0cd3ba8f"
---

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

Discussion

# [Documenting a callback function in JSDoc](https://blog.birk-jensen.dk/documenting-a-callback-function-in-jsdoc?utm_source=hashnode&utm_medium=feed)

A callback function is a function passed into another function as an argument, which is then invoked inside the outer function to complete some kind of routine or action. -- MDN: Callback function Callbacks are used all over in JavaScript, a good ex...

Jan 12, 2024 · 7 min read · blog.birk-jensen.dk  
Updated Dec 13, 2024  
Read the article

-   [#jsdoc](https://hashnode.com/tag/jsdoc)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#vs-code](https://hashnode.com/tag/vs-code)
-   [#documentation](https://hashnode.com/tag/documentation)

## Written by

[Philip Birk-Jensen](https://hashnode.com/@BirkAndMe)

@BirkAndMe · Denmark

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

PHP &amp; JavaScript developer, working in Drupal.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
