This is an old revision of the document!
Inspired by JSFuck, but here's the rules:
[a-zA-Z0-9]), no spaces, only `` quotes
Use either `${<code>}` or (<code>+[]) to obtain useful keywords:
| keyword | code |
|---|---|
[object Object] | {} |
true | !`` |
false | ![] |
NaN | -`!` |
undefined | [][[]] |
-Infinity | ~[]/[] |
| number | code |
|---|---|
| -3 | ~-~-~[] |
| -2 | ~-~[] |
| -1 | ~[] |
| 0 | -[] |
| 1 | -~[] |
| 2 | -~-~[] |
| 3 | -~-~-~[] |
`` and {} usually also works instead of [].
| code | |
|---|---|
| a | `${![]}`[-~[]] |
| b | `${{}}`[-~-~[]] |
| c | `${{}}`[-~-~-~-~-~[]] |
| d | `${[][[]]}`[-~-~[]] |
| e | `${!``}`[-~-~-~[]] |
| f | `${![]}`[-[]] |
| i | `${[][[]]}`[-~-~-~-~-~[]] |
| j | `${{}}`[-~-~-~[]] |
| l | `${![]}`[-~-~[]] |
| n | `${[][[]]}`[-~[]] |
| o | `${{}}`[-~[]] |
| r | `${!``}`[-~[]] |
| s | `${![]}`[-~-~-~[]] |
| t | `${!``}`[-[]] |
| u | `${!``}`[-~-~[]] |
| y | `${-~[]/[]}`[-~-~-~-~-~-~-~[]] |
| I | `${~[]/[]}`[-~[]] |
| N | `${-`!`}`[-[]] |
| O | `${{}}`[-~-~-~-~-~-~-~-~[]] |
| space | `${{}}`[-~-~-~-~-~-~-~[]] |