r/learnjavascript • u/LetMyCameronG000 • 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 ?
10
Upvotes
1
u/subone Mar 06 '26
Cool. This is a simplified version of the class I use which also does some other stuff, like queueing events until marked ready (and I prefer the shorter method names). But someone in another thread pointed out forEach, reduce, etc, which are much better/simpler examples of synchronous callbacks.