Pig Latin: JavaScript Test Driven Development
Why? because it's fun.
TDD?
- write a test, and watch it fail
- write code that should pass the test
- run the test, then refactor the code (if necessary)
Instructions
- Add tests to "spec.js" (think about the rules for pig latin)
- Run tests by opening "spec-runner.html" in your browser
- Add code to "scripts.js"
Results
Your turn!
Compare your tests and code with mine.