Skip to content

Instantly share code, notes, and snippets.

@brettinternet
Last active March 5, 2017 23:28
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 brettinternet/acb72b414d5434fd97d0c3de89fac501 to your computer and use it in GitHub Desktop.
Save brettinternet/acb72b414d5434fd97d0c3de89fac501 to your computer and use it in GitHub Desktop.
Go home Javascript, you're drunk
console.log(9999999999999999); // 10000000000000000
[] + {} // '[object Object]'
{} + [] // 0
console.log(!+[]+[]+![] === 'truefalse'); // true
Math.max( ...[] ) // -Infinity
Math.max( undefined ) // NaN
console.log( …[] ) // undefined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment