Merge pull request #400 from lakinduakash/patch-1

update code snippet that was marked as text.
This commit is contained in:
Ilya Kantor 2018-03-31 21:37:53 +03:00 committed by GitHub
commit 90f6b8fada
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,7 +83,6 @@ let user = {
![](object-user-props.png)
````smart header="Trailing comma"
The last property in the list may end with a comma:
```js
let user = {
@ -92,7 +91,6 @@ let user = {
}
```
That is called a "trailing" or "hanging" comma. Makes it easier to add/remove/move around properties, because all lines become alike.
````
## Square brackets