This is not possible, as JavaScript runs in a single thread.
Some runtimes, such as node.js, provide threading in some ways, but it's not inherent to the language so to use it you need to write bindings to specific functionality these runtimes provide.
This is not possible, as JavaScript runs in a single thread.
perhaps not when targeting the browser
but targeting nodejs we should be able to manage worker threads