Back
Syntax
Study
Editor
Mode:
HTML
CSS
JavaScript
PHP
Reset
Run »
HTML / CSS / JS
// math.js — multiple named exports export const PI = 3.14159; export function add(a, b) { return a + b; } export function multiply(a, b) { return a * b; } // Or export all at once at the bottom const subtract = (a, b) => a - b; export { subtract };
Result
Open