CommonJS vs ES Modules

What is a key advantage of ES Modules' export syntax over CommonJS exports?
// CommonJS
module.exports = {
  foo: 'bar',
  baz: function() {}
};

// ES Modules
export const foo = 'bar';
export function baz() {}
Next Question (3/20)