Skip to content

Commit

Permalink
Merge pull request #118 from zetaraku/master
Browse files Browse the repository at this point in the history
Fix typo & Improve example (reopened)
  • Loading branch information
aemkei authored Jul 23, 2021
2 parents 94c3835 + d71cee0 commit 1f02651
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ Combining the plus sign and brackets will turn other values into strings:
[] +[] // "" - empty string
+[] +[] // "0"
[][[]] +[] // "undefined"
++[][[]] +[] // "NaN
++[][[]] +[] // "NaN"
++[[]][+[]] +[] // "1"
```

Expand All @@ -179,12 +179,12 @@ As we have strings, we can also get single characters:
"undefined" [ 0] // "u"
[ "undefined" ][ 0][ 0] // "u"
[ undefined +[] ][+[]][+[]] // "u"
[ [][+[]] +[] ][+[]][+[]] // "u"
[ [][[]] +[] ][+[]][+[]] // "u"
```

```js
[[][+[]]+[]][+[]][ 1 ] // n
[[][+[]]+[]][+[]][ ++[[]][+[]] ] // n
"undefined" [ 1 ] // "n"
[[][[]]+[]][+[]][ ++[[]][+[]] ] // "n"
```

Since we have "NaN" and "undefined", we got the following characters:
Expand Down

0 comments on commit 1f02651

Please sign in to comment.