3 ms·
> Languages like JavaScript do not have any synchronous operations so you can't use them by mistake. Can you explain what you mean by this? Isn't it the opposi
by Eduard 4y ago
> Languages like JavaScript do not have any synchronous operations so you can't use them by mistake.
Can you explain what you mean by this? Isn't it the opposite - Javascript has a synchronous execution model?
- mgraczyk 4y agoI mean what the article calls a "synchronous blocking method", which javascript (mostly) does not have.
- vlovich123 4y agoAside from NodeJS-specific APIs, JS as a whole does not generally have any synchronous I/O, locks, threads etc. SharedArrayBuffer is probably the notable exception as it can be used to build synchronous APIs that implement that functionality if I’m not mistaken. Unless by synchronous you meant single threaded in which case JS is indeed single threaded normally (unless you’re using things like Web Workers).