An activity to practice working with functions and closures in Javascript.
-
Fork and clone this repository.
-
In your terminal, navigate to the project directory.
-
Install the project dependencies.
$ npm install
-
In your terminal, navigate to the project directory.
-
Run the activity.
-
In the terminal from the project directory, run the following command:
$ node src/index.js
Or
$ npm start
-
Or from VS Code, install the Code Runner extension and run the file by clicking the play button in the top right corner of the editor.
The project is configured to use ESLint to provide syntax warnings. ESLint can be run from the project directory using the following command:
$ npm run lint
ESLint warnings can be shown in VS Code by installing the ESLint extension.
Examine the Javascript code in src/index.js
. Follow the written instructions to practice using functions in Javascript.