Javascript – How to Use Callbacks



a callback is a function that is passed as an argument to another function, this makes functions more flexible

the callback is invoked inside the function

you can also use an anonymous function as a callback

the use of callbacks is very common, and are used often

———————————————————–
http://atechapart.com | http://linkedin.com/in/alvinsanchez

see my codepens @ http://codepen.io/_asanchez/

Original source

34 thoughts on “Javascript – How to Use Callbacks

Leave a Reply