2 ms·
Javascript APIs expose callback interfaces, and the callbacks are called on the thread that scheduled it. The real concurrency happens behind the scenes and is
by samus 5y ago
Javascript APIs expose callback interfaces, and the callbacks are called on the thread that scheduled it. The real concurrency happens behind the scenes and is handled by the browser. So no, Javascript is not single-threaded in practice.