Skip to content

Commit

Permalink
Execute Modern JS: update lessons 16, 17
Browse files Browse the repository at this point in the history
  • Loading branch information
0bubbles0 committed Aug 14, 2021
1 parent a29474d commit d4f6342
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
3 changes: 3 additions & 0 deletions week-01-02/javascript-practice/execute.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@
| 13. | Computed properties | Jul 8, Thu |
| 14. | Tagged template literals | Jul 9, Fr |
| 15. | Basic array destructuring | Aug 14, Sat |
| 16. | Basic object destructuring | Aug 14, Sat |
| 17. | Places where destructuring is allowed | Aug 14, Sat |
| | | |
<!--
| | | |
Expand Down
11 changes: 9 additions & 2 deletions week-01-02/javascript-practice/test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
const promise = Promise.reject({ message: 'it failed' }).catch();
// const promise = Promise.reject({ message: 'it failed' }).catch();

console.log(promise);
// console.log(promise);

const key = 'name';
const { [key]: value } = { name: 'Amir' }; // value is 'Amir'

console.log(value); //'Amir'
console.log(name);
console.log(key); //'name'

0 comments on commit d4f6342

Please sign in to comment.