These are test driven development oriented exercises from the Introduction to JavaScript and Web Development two day class offered by Montana Code School.
The first is from the Fizz Buzz drinking game, where multiples of 3 are converted to 'Fizz', multiples of 5 to 'Buzz', and multiples of 3 and 5 are converted to 'FizzBuzz'. You need to add to the implementation in fizzBuzz.js. And change the "xit" tests to "it" to activate them in fizzBuzzTest.js.
The second is a converter of Roman Numerals into regular JavaScript integers. You need to add to the implementation in romanNumeralConverter.js, change the "xdescribe" to "describe" and "xit" tests to "it" to activate them in romanNumeralConverterTest.js. You can add more tests for more roman number examples.
The third is the beginning of a Tic Tac Toe game.
Continue the class with the Full Stack Web Application IntroJS-TODO
To start, we recommend you install the current Node.js.
Then run 'npm install' in the project root directory to get mocha and chai.
Tests should be run with 'npm test'.
We are using the free and Open Source text editor Atom in the class.
There are many online learning platforms, many of which cost money. We highly recommend these free resources to support your learning.
- Exercism - TDD oriented exercises in many languages
- FreeCodeCamp.org - methodical exercises for programming
- JavaScript Koans
Perhaps the best way to keep learning is to support each other and learn together. FreeCodeCamp encourages local groups to self-organize, as did a group in Missoula:
We highly recommend you also join the Montana-Programmer's on Meetup.com. You can attend presentations and networking events. Consider also posting your own learning events. One of the best ways to learn something is to teach it.
Though the teachers of the class have not found these books to be especially helpful to them personally, some have found these JavaScript books useful.
- A Smarter Way to Learn JavaScript
- JavaScript: The Good Parts
- JavaScript & jQuery: Interactive Front-End Web Development
And here is a book about Mob Programming.