Skip to content

Instantly share code, notes, and snippets.

@insin
Created August 31, 2011 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save insin/1183916 to your computer and use it in GitHub Desktop.
Save insin/1183916 to your computer and use it in GitHub Desktop.
Contrived usage of comma operator and behaviour of parseInt - what's the output?
parseInt((null, {test: 99}, false, 'J,uhuru', /asdf/, function() { giantInflatableShark(!!'!!'); },
'A,spock', '0') + ('cheese' / 'toast', new Date(), Number('hello'),
'x') + (undefined, [1, 2, 3], new Array(5), 1e4, 'F,captainkirk'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment