JavaScript Koans is an interactive learning environment that uses failing tests to introduce students to aspects of JavaScript in a logical sequence.
The inspiration for this project comes from the Edgecase Ruby Koans and the book 'Javascript: The Good Parts'.
The goal is to make the tests pass, and for that you need to "fill in the gaps".
While the original project is made to run in a browser, this is an adaptation to be run under NodeJS.
The koans use the internal NodeJS' assert
module and implement a minimum colored interface to display the results.
Some tasks that are intended to be part of the excercise:
- Create a package.json to describe the project
- Add an npm script –in package.json– to make the tests run in the expected sequence (see jskoans.html)
- Modify the scripts to allow them to be imported as modules into this npm script
- Add a dependency (like
chalk
) to improve the coloring in the terminal
Pending stuff to be added as tests:
- Object and array destructuring
Get started with Ryan Anklam's Learn JavaScript completely On the Cloud With the JavaScript Koans and Cloud9 IDE