The JavaScript Event Loop: Why Your Code Doesn’t Do What You Think It Does

JavaScript is single-threaded. One thread. One call stack. One thing at a time.