|
|
|
|
|
by flebron
4219 days ago
|
|
You may be speaking of a particular implementation or engine. JS, the language, has no such concept of a "thread". The standard describes execution of a valid program as linear. Libraries may add functions such as event listeners or threading or sockets, but these are not part of the language. And yes, to be pedantic, by JS I'm refering to ECMAScript, or ECMA-262. If by JS you mean JavaScript the implementation by Mozilla, then Node doesn't use that anyway :p |
|
But it appears that it's part of the WHATWG HTML spec rather than ECMAScript, which is a bit weird.