r/learnjavascript • u/RobGoLaing • Oct 24 '26
Some notes on callbacks
I've written some notes on callbacks as part of my effort to write tests and be methodical in learning JavaScript.
Callbacks are one of those things that are quite easy once you go "Aha", but like probably most people, I found them very confusing at first.
12
Upvotes
View all comments
3
u/DirtAndGrass Oct 24 '26
It's worth noting that callbacks are not a JavaScript construct, they are a technique made possible by being able to reference functions.
And promises should be used instead of callbacks