Shutterfly Interview Question

What is callback/closure/event propagation, etc.

Interview Answer

Anonymous

May 8, 2019

A callback is a function that is to be executed after another function has finished executing . A closure is a feature in JavaScript where an inner function has access to the outer (enclosing) function's variables — a scope chain , (a closure is simply a function defined within another function). Event propagation is a way to describe the stack of events that are fired in a web browser.

1