소스 검색

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: