javascript how to export function code example
Example: export function javascript
// module "mon-module.js"
export default function cube(x) {
return x * x * x;
}
// module "mon-module.js"
export default function cube(x) {
return x * x * x;
}