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 |