Default Exports Lab

85.8% Acceptance

In this hands-on JavaScript lab, you will work with default exports in ECMAScript modules (ESM). The main goal of this lab is to create a variable named greeting with a value 'Hello World' and export it using the default export syntax of ESM.

ECMAScript modules provide a way to incorporate syntax for importing and exporting variables, functions, and other items from a module. Default export is a feature of ESM that allows a single value to be exported per module. This makes it easy to import the default value by simply using the import statement without any curly braces {}.