Skip to content

FarhadG/javascript-summons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JAVASCRIPT SUMMONS

This project is in its early stages and will continue to grow with new tests to summon. If something is not working or you would like a new feature, please use the issues page.

Do you have what it takes to summon JavaScript? Let's find out!

Information

Language JavaScript
Test Suite Mocha
Exercises 25

Installation

To summon, you must first have npm installed.

Once you have npm, install mocha globally by running the following command:

  $ npm install -g mocha

Then fork and clone (or download) JavaScript Summons into your local directory:

  $ git clone https://www.github.com/farhadg/javascript-summons

Usage

All of the exercises are located in the src directory. They contain the necessary directions for the challenges; for more infomation regarding the tests, you can locate them in the spec directory.

Navigate to the src directory and fire up an exercise:

/*--FACTORS

  Write a function that returns an array 
  containing all of the factors of a number.

  For example: factors(10) returns [1, 2, 5, 10]
*/

var factors;

factors = function(num) {
  return "summon here";
};

Solve the exercise and summon the test by running the following command:

  $ mocha filenameSpec.js

Be sure to run this command within the spec directory.

Options

Mocha's browser support may later be added; if you'd like this feature, let me know so that it'll be implemented into future updates.

To summon with Mocha's different reporters, run the following command (e.g. spec):

  $ mocha filenameSpec.js -R spec

You can view a list of Mocha's reporters by running the following command:

  $ mocha --reporters

Credits

These summons were inspired by the many wonderful online resources (e.g. RubyMonk, Hack Reactor, CoderByte, App Academy, etc.) that challenge developers everyday to become better.

About

A collection of Javascript exercises to get you grooving.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published