3 ms·
JavaScript is a single-threaded, prototype-based language with no real concept of scoped variables and the like. Is this true? Webworkers is a multithread con
by huuu 11y ago
JavaScript is a single-threaded, prototype-based language with no real concept of scoped variables and the like.
Is this true?
Webworkers is a multithread concept and as far as I know all variables are scoped but maybe not like they are in C.
- dbattaglia 11y agoI think they meant to say block scoped variables. In js everything is function scoped or global (until you get to ES 6 "let" and "const" variables). As far as web workers, they are very restricted/isolated compared to regular shared memory threads In other languages.