Create two files exportObject.js
, importObject.js
parallel to README.md
file.
Write an object with keys as firstName
and lastName
and values as John
and Wilson
respectively in the file exportObject.js
and export it using the default export syntax.
Import the object in the importObject.js
file.
Use Common JS module syntax.