JavaScript Challenge #2 (Whac-A-Moo)

Written by Christopher Pitt on 1 August 2012 – Posted under all, challengesComments

Hopefully the first challenge got you excited for JavaScript development in a competitive environment...

One of the most common requirements of web applications is to be able to respond to user input, and in particular clicks (or touches). Continuing with our theme of element generation (and in some cases animation); this week’s challenge will be to create a basic whac-a-mole game.


JavaScript Challenge #1 (Wait, weekly?)

Written by Christopher Pitt on 25 July 2012 – Posted under all, challengesComments

The purpose of MooTools is not simply to bring syntactic sugar to JavaScript development but also to make you better at JavaScript. Often in forums and on Stack Overflow, the question will arise; "how do I do [insert UI widget] with [insert popular library]".

The problem with these kinds of questions is that they often speak of the over-dependence on a certain framework (such as MooTools or jQuery) without a proper understanding of how JavaScript works or how to structure code well.

It is with this in mind that we want to set some challenges in plain old JavaScript (which are probably good programming challenges for any language) that will flex your grey matter.