%% date:: [[2022-12-25]] %% # [[Callbacks in js]] In [[JavaScript]], a callback is an argument in a function that is, in itself, a function, and it's done so that the parent function won't execute until the callback function has returned a value. For more information on this, check out the troubleshooting page [[Function returns undefined in js]]. For an example of this in practice, check out my [[Mastobot]] code repository [here](https://github.com/nicolevanderhoeven/mastobot/blob/main/bot.js).