Skip to content

Commit

Permalink
chore: add instruction for how to run js files
Browse files Browse the repository at this point in the history
  • Loading branch information
Destaq committed Sep 26, 2024
1 parent 0c84033 commit dd2a2f8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions versioned_docs/version-2024fa/setup-environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ We highly recommend adding a flag to get rid of extra `undefined`s at the end of
node -e "require('repl').start({ignoreUndefined: true})"
```

## Running simple JS files

If you have a simple single JS file, you can run it with Node.

```bash
node your-file.js
```

Where `your-file.js` is the name of the file you want to run, **relative to the current directory**.

## Making a React Project

To make sure you've got everything set up correctly, `cd` into a directory of your choice and run:
Expand Down

0 comments on commit dd2a2f8

Please sign in to comment.