JS-Assessment: a brief tutorial

Once in a while, you stumble upon a JavaScript tool that is so awesome that it blows your mind. While I was reading through Rebecca Murphey’s blog I found JS-Assessment. What it actually is is “a test-driven approach to assessing JavaScript skills”. In essence it is a bunch of tasks which have tests written for them and you have to come up with functions to pass the tests. Does not seem very extraordinary when you put it like that. However, consider the fact that the whole thing is written in JavaScript! As described in the JS-Assessment GIT Hub page the software underneath the project consists of  “RequireJS for dependency management and Mocha and expect.js for the tests themselves.” And everything runs inside a node.js server.

In this short tutorial I will try to describe how to setup and use JS-Assessment on Windows 7. I felt that the documentation on how to install/setup and use JS-Assessment is lacking. At the moment the GIT Hub page of JS-Assessment contains a very brief and unfinished explanation which might be difficult for some people to grasp. So lets begin.


  1. Download the whole repository of JS-Assessment from GIT Hub. For Windows you want to get the .zip archive.
  2. Put is somewhere convenient, like C:\Projects\jsassessment and unpack.
  3. Download node.js for windows. At the moment of this writing the stable version of node.js is 0.8.2.
  4. Install node.js
  5. Now open the node.js command prompt from Start > Node.js (x86) > Node.js command prompt.
  6. You have to navigate to the root folder of unpacked JS-Assessment. You can do this by typing

    cd C:\Projects\jsassessment\rmurphey-js-assessment-bdabaff

    (*note that if your path to root folder of js-assessment is different you will have to adjust your command)

  7. Now that you have navigated to the root folder of JS-Assessment with your node.js command prompt you can install it.
  8. Simply run these two commands: npm install , node bin/serve
  9. Command prompt should have printed this afterwards: Serving at http://localhost:4444
  10. Now open your web browser and go to http://localhost:4444
  11. You should see a list of failed tests. Pat yourself on the back – you have finished setting up JS-Assessment.
  12. Now to start working on your JS skills you have to go to C:\Projects\jsassessment\rmurphey-js-assessment-bdabaff\app\arrays.js. because currently it is the first test that you see on the page.
  13. Inside the indexOf function, on line 6 write this: return arr.indexOf(item); and save the arrays.js file.
  14. Open http://localhost:4444 in your browser and hit refresh.
  15. Congrats, you just completed the first task. *You should see a green check mark near the “you should be able to determine the location of an item in an array” task.

All in all, I feel that JS-Assessment has a lot of potential. I see it as an extremely useful tool for people who wish to learn JavaScript, because it gives you a lot of real world problems and requires plenty of reading to solve all of them. However, at the moment it is not very polished. But I hope that in the coming months it will improve a lot.

Thanks for reading, I hope you enjoy JS-Assessment as much as I did.

2 Responses to “JS-Assessment: a brief tutorial”
  1. Doug Mccormack

    Regularly I am learning a great deal more about NodeJS. It truly is definately the ultimate framework to get familiar with long-term. I just now concluded the BackSpace.Academy Amazon web services (aws) Certified Developers route. It has unfolded a totally new Arena of programs for myself. Now I must find the time in order to get developing!

  2. Doug Cordell

    Nice page! Seven days a week I will be learning bit more about NodeJS. It really is definately the ultimate framework to master long term. Just fulfilled the BackSpace.Academy Amazon web services Certified Developers course. They have expanded a brand new World of programs for myself. Now I’ve got to find the time for getting developing!

Leave a Reply