Please explain callback function. | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita

Please explain callback function.

All i know is you pass a function as an argument to another function.

18th Jul 2018, 2:55 AM
Akib - avatar
2 Respuestas
+ 4
It is a function, that is called by an event eg mouseclick. So you dont call the function yourself but tell the eventhandler to call it. (what is the passing to another func)
18th Jul 2018, 3:24 AM
Oma Falk
Oma Falk - avatar
Oma Falk I saw it in a example. So got confused. Thank you for explaining.
18th Jul 2018, 4:19 AM
Akib - avatar