update code snippet that was marked as text.

This commit is contained in:
Lakindu Akash 2018-03-05 01:41:28 +05:30 committed by GitHub
parent 9365275467
commit 3334ce274e
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