1
JavaScriptIntermediate#objects
ES modules have their own scope, are always strict, load deferred and support static import/export analysis for tree shaking. Classic scripts share the global scope.
// utils.js
export const add = (a,b) => a+b;
export default add;
// app.js
import add, { add as named } from './utils.js';