JavaScript Modules (import/export)

What feature is demonstrated by using modules in Web Workers?
// worker.js
import { process } from './utils.js';
self.onmessage = async ({ data }) => {
  const result = await process(data);
  self.postMessage(result);
};

// main.js
const worker = new Worker('./worker.js', { type: 'module' });
Next Question (19/21)