switch Statement
A common error in switch
statements is to
forget to place a break
statement after each
case, resulting in unintended fall-through. JSLint expects that the statement before
the next case or default is one of these: break
,
return
, or throw
.
Get JavaScript: The Good Parts now with O’Reilly online learning.
O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.