瀏覽代碼

Merge pull request #118 from zetaraku/master

Fix typo & Improve example (reopened)
Martin Kleppe 3 年之前
父節點
當前提交
1f02651e98
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      README.md

+ 4 - 4
README.md

@@ -167,7 +167,7 @@ Combining the plus sign and brackets will turn other values into strings:
   []        +[] // "" - empty string
  +[]        +[] // "0"
   [][[]]    +[] // "undefined"
-++[][[]]    +[] // "NaN
+++[][[]]    +[] // "NaN"
 ++[[]][+[]] +[] // "1"
 ```
 
@@ -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: