diff --git a/5.9Destructuring/t.js b/5.9Destructuring/t.js new file mode 100644 index 0000000..7ffa0bd --- /dev/null +++ b/5.9Destructuring/t.js @@ -0,0 +1,5 @@ +let arr = ["John", "Smith"] + +let [firstName, surname] = arr; +console.log(firstName); +console.log(surname); \ No newline at end of file