Callback functions are a little bit tricky to understand at first, but basically it let's you pass a function into another function as a parameter. The function you pass in gets then called from inside the function called.
function doCallBack(cb){ cb() } doCallBack(()=>{ console.log("i got called from within doCallBack") })
deleted by author
reply