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

———————————————————– |

see my codepens @

Original source

34 thoughts on “Javascript – How to Use Callbacks

Leave a Reply