Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
Ben Nadel at cf.Objective() 2017 (Washington, D.C.) with: Valerie Poreaux
Ben Nadel at cf.Objective() 2017 (Washington, D.C.) with: Valerie Poreaux@valerieporeaux )

Robert Vock

Member since Aug 3, 2015

Recent Blog Comments By Robert Vock

  • Switch Cases Do Not Have To Be Static In JavaScript

    Posted on Aug 3, 2015 at 11:55 AM

    When you use switch (true), you can use different if-statements as case: <pre> function test() { console.log('test'); return true; } switch (true) { case test(): console.log('foo'); break; default: console.log('default'); break; } </pre> This logs 'test' and 'foo' to the consol... read more »