I've been reading a little about those web sites taht surreptitiously had Javascript running on the page that is mining cryptocurrency. How do those pieces of JS work code generally? Specifically
Do all pieces of Javascript code report back to a central server which maintains a mining pool?
Does each piece of code get a separate piece of work to do (and get assigned a different worker ID) so the malicious web site can mine faster?