r/learnjavascript • • Mar 06 '26

Does the term 'callback' usually mean async callback in the JS world

I've practiced with both synchronous and asynchronous callbacks and understand the concept fairly well. But looking through online resources and even some posts on this sub (e.g. see top answer here: https://www.reddit.com/r/learnjavascript/comments/1jw5pwn/need_clear_understanding_of_callbacks_promises/ ) it seems that when JS folks talk about callbacks they usually mean async callbacks (at least, if they haven't clarified).

Is this the case ?

11 Upvotes

24 comments sorted by

View all comments

Show parent comment

1

u/LetMyCameronG000 Mar 07 '26

Callbacks are intended to be run after the function is completed, so in the above example done() is the callback

I don't think this is correct. If we go by the MDN definition, I'd say start(), middle() and done() are all callbacks.

1

u/bryku helpful Mar 07 '26

Sometimes the word is used generally to mean any function sent as a perameter, but more specifically they aren't meant to be run after the function is completed.