// export variables declared elsewhere
export { f1, f2 };
// export declarations
export let a = Math.sqrt(2);
export function f() { ... };
replit:
// math.js
// ⭐️ named exports
export function add(a, b) { return a + b }
export function subtract(a, b) { return a - b }
export function multiply(a, b) { return a * b }
export function divide(a, b) { return a / b }