3 ms·
Javascript as a language is single threaded. Essentially JS is just an API working with text,arrays, dates but does not include I/O (networking and storage) typ
by sukhmeet2390 10y ago
Javascript as a language is single threaded. Essentially JS is just an API working with text,arrays, dates but does not include I/O (networking and storage) typically implemented by host environment.(mostly browsers).
So this is where async nature arises from the network requests and storing data.
Hence race conditions can arise from doing async operations on which finishes first.