kumar-18 / NodeJS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About


Languages

Language:JavaScript 100.0%