JavaScript is single-threaded, which means that only one action can be performed at a time. The event loop executes tasks as long as it has such tasks to perform.