mdn callback function code example
Example: callback function
//Callback functions - are functions that are called AFTER something happened
const foo = (number, callbackFunction) => {
//first
console.log(number)
//second - runs AFTER console.log() happened
callbackFunction()
}