Skip to content

Retsam/JSInternWhiteboard

Repository files navigation

Javascript Whiteboard Problems

There are several failing unit tests. The task is to make all of the unit tests pass.

The questions folder contains either incomplete, or incorrect functions that need to be fixed so the unit tests pass.

The test folder contains the tests that are being run against the functions, which should provide enough information to know what the function is supposed to be doing.

Javascript built-in methods (Array.prototype.map) are not fair game :)

To run only specific tests, comment out the require statements in testall.js. For instance:

require('test/test1');
// require('test/test2');

would obviously run only the first set of tests.

Requirements

NPM

Visit Node's documentation to install Node and NPM.

Running

NodeJS

To run all tests in NodeJS simply execute in the terminal:

node testall.js

Chrome

To run all tests in Chrome, execute in the terminal:

npm run build

then navigate chrome to http://localhost:1234. Output will be printed to the console and as raw text in Chrome.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published