Skip to content

campbellgoe/js-sandbox

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
cli
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

js-sandbox

Javascript sandbox This repository contains several standalone files to play with certain javascript concepts such as generator functions and async await. These can be run with node


Before you begin, install Node.js from here

Then you can run the scripts in the terminal by typing a command like this:

node <scriptname> <arguments>

You will also need to specify the pathname, relative to the current working directory (cwd) of your terminal.

For example, could be ./functions/generators.js and could be 10 6 and therefore you command would be:

node generators.js 10 6

To run the tests, files which end in .test.js, install mocha by running the npm install command like this:

npm install mocha -g

once installed, you can run the tests by typing in the terminal:

mocha <scriptname>

so for example:

mocha functions.test.js

or use a glob pattern like this:

mocha **/*.test.js

About

Modern javascript sandbox

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published