Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 382 Bytes

README.md

File metadata and controls

9 lines (5 loc) · 382 Bytes

Import and Export an Array using ES6 Module Syntax

Create two files exportArray.mjs, importArray.mjs parallel to README.md file.

Write an array with the values as "countries", 190, "continents", 7, false, 6.2 in the exportArray.mjs file and export it using the default export syntax.

Import the array in the importArray.mjs file.

Use the ES6 module syntax.