2024-07-01 10:52:25 +02:00

3 lines
288 B
Plaintext

JavaScript is single-threaded (but note that NodeJS is not entirely single-threaded, as it internally mantains a thread pool), but it can still take advantage of asynchronous programming.
The Event Loop, which is a JavaScript construct that completes a new task while waiting for another