5.9
This commit is contained in:
parent
972a004706
commit
f06883b38e
5
5.9Destructuring/t.js
Normal file
5
5.9Destructuring/t.js
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
let arr = ["John", "Smith"]
|
||||||
|
|
||||||
|
let [firstName, surname] = arr;
|
||||||
|
console.log(firstName);
|
||||||
|
console.log(surname);
|
Loading…
Reference in New Issue
Block a user