Skip to content

Instantly share code, notes, and snippets.

@atlefren
Last active December 31, 2015 03:39
Show Gist options
  • Select an option

  • Save atlefren/7929439 to your computer and use it in GitHub Desktop.

Select an option

Save atlefren/7929439 to your computer and use it in GitHub Desktop.
(![]) = false
(![]+[]) = "false"
(!![]) = true
(!(![])+[]) = "true"
+[] = 0
+!+[] = 1
!+[]+!+[] = 2
+!+[]+[+[]] = "10"
+(+!+[]+[+[]]) = 10
[][[]] = undefined
([][[]]+[]) = "undefined"
[][[]]+(+[]) = NaN
(([][[]]+(+[]))+[]) = "NaN"
(![]+[])[+!+[]]+ //a
(!![]+[])[+[]]+ //t
(![]+[])[!+[]+!+[]]+ //l
(!![]+[])[!+[]+!+[]+!+[]]+ //e
(![]+[])[+[]]+ //f
(!![]+[])[+!+[]]+ //r
(!![]+[])[!+[]+!+[]+!+[]]+ //e
([][[]]+[])[+!+[]]; //n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment