JavaScript The Event Loop
JavaScript is single threaded. so it needs event loop to run asynchronous (Multi Thread) code. JavaScript first runs synchronous code, then it queue asynchronous code to call later. Asynchronous code is called/executed by event loop. System/Browser takes synchronous code and put them as tasks. then these tasks are put them into queue. The Event Loop […]