Skip to content

Commit

Permalink
Clarify sneaky i in one section.
Browse files Browse the repository at this point in the history
  • Loading branch information
GantMan authored Aug 1, 2017
1 parent c0977d3 commit 1ce2fdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ Thinking of a string as an array we can access its first character via `[0]`:
'false'[0] // -> 'f'
```

Now, the rest is obvious and can figure out it by yourself!
The Rest is obvious, but the `i` is tricky. The `i` in fail is grabbed from generating the string `'falseundefined'` and grabbing index `['10']`

## `[]` is truthy, but not `true`

Expand Down

0 comments on commit 1ce2fdd

Please sign in to comment.