Create two files exportFunctionWithParameter.js
, importFunctionWithParameter.js
parallel to README.md
file.
Write a JS function that accepts a number and returns its square, in the file exportFunctionWithParameter.js
and export it using the default export syntax.
Import the function in the importFunctionWithParameter.js
file.
Use Common JS module syntax.