I go by this when it comes to switch statements - http://oreilly.com/javascript/excerpts/javascript-good-parts/bad-parts.html