This commit is contained in:
mhrooz 2024-06-22 11:17:10 +02:00
parent 972a004706
commit f06883b38e

5
5.9Destructuring/t.js Normal file
View File

@ -0,0 +1,5 @@
let arr = ["John", "Smith"]
let [firstName, surname] = arr;
console.log(firstName);
console.log(surname);