In short: there are no synchronization primitives in javascript, but they also don't need it, since JavaScript is essentially single-threaded :). Workers can only access their own scale (without manipulating dom manipulations) and send messages to the main thread ui, where the usual js is located. Iβm not sure about the maximum number of employees, but Iβm sure that this is a limitation, you can try it in a browser :)
Hope this helps!
mfeineis
source share