Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrdavidlaing/javascript-koans
Koans to learn Javascript
https://github.com/mrdavidlaing/javascript-koans
Last synced: 28 days ago
JSON representation
Koans to learn Javascript
- Host: GitHub
- URL: https://github.com/mrdavidlaing/javascript-koans
- Owner: mrdavidlaing
- License: mit
- Created: 2010-11-06T14:50:55.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2024-03-14T21:54:12.000Z (8 months ago)
- Last Synced: 2024-04-13T22:23:48.527Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 2.95 MB
- Stars: 2,392
- Watchers: 83
- Forks: 3,507
- Open Issues: 79
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE
Awesome Lists containing this project
- awesome-by-example - JavaScript Koans: Koans to learn JavaScript
README
# javascript-koans
Based on Edgecase's fantastic
[Ruby koans](http://github.com/edgecase/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 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
Simply navigate to the Javascript Koans folder using a file browser, and
double click on KoansRunnner.html.Any browser will do, but for the best results Firefox or Chrome is
recommended. More stack trace information shows up for javascript on these
browsers.The first error will be in koans/AboutExpects.js. Fix the first test and
refresh the browser. Rinse and repeat until all tests turn green.The test runner used is [Jasmine](http://jasmine.github.io/) with a customized report viewer.
### Changelog
* 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### Acknowledgements
* 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### [MIT Licensed](LICENSE)