Alan explains how JavaScript handles callbacks, emphasizing the use of the callback queue and event loop to manage asynchronous operations effectively. He delves into the intricacies of settimeout and how functions are processed in the call stack, shedding light on the inner workings of JavaScript's single-threaded nature.