— What is callback. Fonction ??
A callback is a function you pass as a parameter to another function which will call your callback function after it's done
— Or after some condition
— But why do that ?
— Why i need to pass a fonction like a parameter for other function ??
— For asynchronous functions where you don't control when the function is done, you can pass the callback, and it will be called when it's done
Message permanent page
asyncFunction(param1, param2, callback)// someOtherStuff...
— Does that make sense Adan?
— Thank you
— No, querySelectorAll obviously does more work
— Where is the test?