Skip to content

Commit 9fb2076

Browse files
authored
correction for code template consistency
':' character is indicating 'var2' is a key of object.
1 parent d5195b5 commit 9fb2076

File tree

1 file changed

+1
-1
lines changed
  • 1-js/05-data-types/10-destructuring-assignment

1 file changed

+1
-1
lines changed

1-js/05-data-types/10-destructuring-assignment/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ The destructuring assignment also works with objects.
187187
The basic syntax is:
188188

189189
```js
190-
let {var1, var2} = {var1:…, var2…}
190+
let {var1, var2} = {var1:…, var2:…}
191191
```
192192

193193
We have an existing object at the right side, that we want to split into variables. The left side contains a "pattern" for corresponding properties. In the simple case, that's a list of variable names in `{...}`.

0 commit comments

Comments
 (0)