Skip to main content

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 »

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel