Skip to content

safjanowski/javascript-koans

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Javascript Koans – the good bits

Based on Edgecase's fantastic Ruby koans, the goal of the Javascript koans is to teach you Javascript programming through testing.

When you first run the koans, you'll be presented with a runtime error and a stack trace indicating where the error occurred. Your goal is to make the error go away. As you fix each error, you should learn something about the Javascript language and functional programming in general.

Your journey towards Javascript enlightenment starts in the app/koans/AboutExpects.js file. These koans will be very simple, so don't overthink them! As you progress through more koans, more and more Javascript syntax will be introduced which will allow you to solve more complicated problems and use more advanced techniques.

Running the Koans from console

In the root folder of dowloaded repository run npm install – than grunt server.

Grunt server will open your browser with address 127.0.0.1:9000

The first error will be in app/koans/AboutExpects.js. Fix it and enjoy with automaticly fefresh page. If you see green light – you can go forward otherwise – fix current test.

The test runner used is Jasmine with a customized report viewer.

Changelog

  • v4 - Jan 2014 - Update project to use GruntJS
  • v3 - Nov 2010 - Moved out of branch of functional-koans project, into own top level project
  • v2 - Sept 2010 - Second version based on jasmine (Thanks Greg Malcolm!)
  • v1 - July 2010 - First version based on jsTestDriver

Inspirations & thanks

  • Dick Wall (the Java posse) - for bringing the idea of koans to my attention
  • Edgecase - for the great Ruby Koans
  • Douglas Crockford - for Javascript; the good bits

Requirments

  • NodeJS >=0.8.0
License

This software is (c) 2010 David Laing, Greg Malcolm & Krzysztof Safjanowski, and licensed under the MIT license (see LICENCE for details). Enjoy!

About

Koans to learn Javascript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 95.6%
  • CSS 4.3%
  • Shell 0.1%