Skip to main content
100%

Gist 7ce9df53ac9ec00419634ca3f9e3f772

✓ Published0🌍 Public
Aabernier
Last edited Sep 15, 2018
Created on Sep 15, 2018

This example demonstrates a minimal JavaScript module that exports both a default function and a named export. The default function logs and returns a greeting string, while the named export `doStuff` logs a message when invoked. The code uses standard ES module syntax with `export default` and `export const`, and relies on the console API for output. It shows the basic structure of a reusable module, highlighting how default and named exports are defined and accessed. No external libraries or rendering are involved.

AI-generated description

Similar vizzes