Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 915 Bytes

README.md

File metadata and controls

17 lines (11 loc) · 915 Bytes

Import and Export Multiple Values using ES6 Module Syntax

Create two files exportMultipleValues.mjs, importMultipleValues.mjs parallel to README.md file.

Write an array, object and a function that in the file exportMultipleValues.mjs and export them using the named export syntax.

Import the values in the importMultipleValues.mjs file.

Use ES6 module syntax.

The variable names and values are given in the below table,

Variable Type Description/Value
myArray Array ["camel", 265, true, "5.6"]
bulb Object {watts: 10, type: "LED"}
multiplyByFour Function Should accept a number and return a number multiplied by four