News for hackers. Stuff that matters.
Re:You Can't JavaScript Under Pressure by Justin_Time on Thursday October 03, 2013 @11:02AM (#6489357)
typeof n === 'number'

It didn't actually require differentiating between integers and floats, just numbers and other types.

Re:You Can't JavaScript Under Pressure by iainnash on Thursday October 03, 2013 @11:08AM (#6489411)
This typeof stuff (and having number instead of integer, string, etc) was the hardest part of this for me.

Normally javascript function inputs aren't this messy.

Re:You Can't JavaScript Under Pressure by solox3 on Thursday October 03, 2013 @11:04AM (#6489375)

    > typeof 5.4
      "number"
Re:You Can't JavaScript Under Pressure by kirse on Thursday October 03, 2013 @11:08AM (#6489418)
Yea, this is what I realized once I saw the puzzle was throwing junk data like "false" on #5.

I mentally skipped over Justin_Time's solution, figuring I would just hit a float error case because it was going to be a stickler about integers.