AzraSiddique / import-and-Export-a-Function-commonJS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Import and Export a Function using Common JS Module Syntax

Create two files exportFunction.js, importFunction.js parallel to README.md file.

Write a JS function that returns the This is a Function text, in the file exportFunction.js and export it using the default export syntax.

Import the function in the importFunction.js file.

Use Common JS module syntax.

About


Languages

Language:JavaScript 100.0%