showing results for - "thread javascript"
Ilyan
04 Nov 2019
1let worker = new Worker('worker.js');
2worker.addEventListener('message', function(e) {
3  console.log(e.data);
4}
5worker.postMessage('Lorem Ipsum');