Bookmark: Using the Switch(true) Pattern in JavaScript - Blog by Seán BarryExplaining the Switch(true) pattern. I use it front time to time