Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 336 Bytes

README.md

File metadata and controls

9 lines (5 loc) · 336 Bytes

Import and Export a String using ES6 Module Syntax

Create two files exportString.mjs, importString.mjs parallel to README.md file.

Write a string Be Happy and Safe in the file exportString.mjs and export it using the default export syntax.

Import the string in the importString.mjs file.

Use ES6 module syntax.