Last active
August 29, 2015 14:28
-
-
Save akouryy/65cf672f37086b47aaf2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+[]; // 0 | |
![]; // false | |
!![]; // true | |
[]._; // undefined | |
({}) // Object {} | |
+[]+""; // "0" | |
![]+""; // "false" | |
!![]+""; // "true" | |
[]._+""; // "undefined" | |
({})+""; // "[object Object]"" | |
_=+[]; _++; _++; _++; _++; _++; | |
__=(({})+"")[_]; // "c" | |
_=+[]; _++; | |
___=(![]+"")[_]; // "a" | |
____=(!![]+"")[+[]]; // "t" | |
__+___+____; // "cat" | |
//////////おまけ////////// | |
[].constructor.constructor; // function Function() /// eval的なやつ | |
[]["constructor"]["constructor"]; // function Function() | |
Function("alert(0)"); /// alert(0)する関数 | |
Function("alert(0)")(); /// alert(0)する | |
[]["constructor"]["constructor"]("alert(0)")(); /// alert(0)する |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment