Skip to content

Commit a5b49a8

Browse files
committed
Merge pull request getify#684 from simonebrunozzi/patch-1
Update ch2.md
2 parents 704f828 + fb825a2 commit a5b49a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

up & going/ch2.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ a = { b: "c" };
4747
typeof a; // "object"
4848
```
4949

50-
The return value from the `typeof` operator is always one of six (seven as of ES6!) string values. That is, `typeof "abc"` returns `"string"`, not `string`.
50+
The return value from the `typeof` operator is always one of six (seven as of ES6! - the "symbol" type) string values. That is, `typeof "abc"` returns `"string"`, not `string`.
5151

5252
Notice how in this snippet the `a` variable holds every different type of value, and that despite appearances, `typeof a` is not asking for the "type of `a`", but rather for the "type of the value currently in `a`." Only values have types in JavaScript; variables are just simple containers for those values.
5353

0 commit comments

Comments
 (0)