- simple example
const code = `for (let i = 0; ;i++) { (i++ % 1000000 === 0) && console.log(i); }`
const worker = new Worker(new URL(`data:text/javascript,${encodeURIComponent(code)}`))
const code = `for (let i = 0; ;i++) { (i++ % 1000000 === 0) && console.log(i); }`
const worker = new Worker(new URL(`data:text/javascript,${encodeURIComponent(code)}`))