• Stars
    star
    2,390
  • Rank 18,519 (Top 0.4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 13 years ago
  • Updated 25 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Koans to learn Javascript

javascript-koans

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 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 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

More Repositories

1

vagrant-unison

Vagrant plugin to sync local files to VM using Unison over SSH
Ruby
37
star
2

functional-javascript

A fun set of koans to teach you functional programming techniques in Javascript
JavaScript
14
star
3

pressup

Wordpress install optimised for theme & plugin developers
PHP
7
star
4

functional-fsharp

Koans to teach you fsharp
F#
5
star
5

flexmojos-sample

Sample Flex / Maven build process, including running FlexUnit and FlexMonkey tests
JavaScript
5
star
6

quicksplash

Super fast loading splashscreen for .NET applications
Visual Basic
4
star
7

AMEEInExcel

Excel Addin to access AMEE climate data
C#
2
star
8

stackato-buildpack-mono

A buildpack for running Mono apps on stackato
Shell
2
star
9

crap4net-with-hudson-crap4j

2
star
10

SPA2011

Code from SPA2011
JavaScript
2
star
11

castlelaing-travel-journal

Journal articles on our travels in SE Asia
JavaScript
1
star
12

CIAPI.CS-Issue-samples

Sample apps for issues with CIAPI.CS library
C#
1
star
13

wordpress-social-login

Fork of http://wordpress.org/extend/plugins/wordpress-social-login/
PHP
1
star
14

cookbooks_public_windows

My Chef Windows cookbooks, intended to be used with RightScale's public windows cookbooks.
Ruby
1
star
15

TDD_CODE_LAB

1
star
16

cloudfoundry-book

Get up to speed on the open source PaaS Cloud Foundry
Ruby
1
star
17

wp-appliance-commander

Dashboard to control virtual appliances
C#
1
star
18

pressupbox-development-boilerplate

Patterns and practices for teams to collaborating on WordPress projects
PHP
1
star
19

es-index-deleter

CF App that periodically deletes Elasticsearch indexes
Ruby
1
star
20

webservice-schema

Specifications and tools to create metadata that describes Json based RESTful & HTTP streaming APIs
C#
1
star
21

reverse_proxy_as_CMS

Showing how you can use a reverse proxy to glue multiple content sources into a single website
C#
1
star
22

environmentmap

A clickable map of your SOA environment - written in Ruby on Rails & hosted on Google App Engine
JavaScript
1
star