The test is in the form of a test framework where the bodies of all of the functions under test are missing.
The idea, is that you have to have a working Node.js installation and an editing environment that you’re happy with. You write the code required to make the tests pass and after an hour, you zip up your directory and mail it back for scoring.
Make sure you have a working node installation before starting.
cd into the js-test directory
run the command "npm start"
navigate to localhost:4444
edit the app/.js files
so that the tests specified in the corresponding tests/app/.js pass.
Some extra clues are in the test files, but these are not to be changed.
After one hour zip up the js-tests directory and mail it back.
My guess is the exports.name and " exports = typeof window ===
'undefined' ? global : window; " in js-assesment/app/
binds the name to the window object if in the browser, but the global
object when in node. This might allow for use of tests in both the
browser and cli, as a global object is a means of including modules
(in addition to amd and common.js).