Skip to content

Latest commit

 

History

History
49 lines (29 loc) · 1.12 KB

File metadata and controls

49 lines (29 loc) · 1.12 KB

JS Functions Livecode

An activity to practice working with functions and closutes in Javascript.

One-Time Setup

  1. Fork and clone this repository.

  2. In your terminal, navigate to the project directory.

  3. Install the project dependencies.

    $ npm install

Running the Activity

  1. In your terminal, navigate to the project directory.

  2. 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.

Syntax Warnings

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.

Activity Directions

Examine the Javascript code in src/index.js. Follow the written instructions and the instructor's livecode to practice using functions in Javascript.