Today’s lesson was a big departure from the simple JS lectures. We learned about closures, callbacks, and events. Events are straight forward and easy to understand. Closures and callbacks I’m still confused about. A closure is when a function captures the environment and freezes it for all its local functions. A callback is when a function executes within another, and sends the results to the parent function.
I’ll have to study this more.