commit
c1c5c730d6
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ user.likes birds = true
|
||||||
|
|
||||||
JavaScript doesn't understand that. It thinks that we address `user.likes`, and then gives a syntax error when comes across unexpected `birds`.
|
JavaScript doesn't understand that. It thinks that we address `user.likes`, and then gives a syntax error when comes across unexpected `birds`.
|
||||||
|
|
||||||
The dot requires the key to be a valid variable identifier. That implies: contains no spaces, doesn't start with a digit and doesn't include special characters (`$` и `_` are allowed).
|
The dot requires the key to be a valid variable identifier. That implies: contains no spaces, doesn't start with a digit and doesn't include special characters (`$` and `_` are allowed).
|
||||||
|
|
||||||
There's an alternative "square bracket notation" that works with any string:
|
There's an alternative "square bracket notation" that works with any string:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue