1//destructuring array
2const alphabet = ['a', 'b', 'c', 'b', 'e'];
3const [a, b] = alphabet;
4console.log(a, b);
5//Expected output: a b
1let [greeting = "hi",name = "Sarah"] = ["hello"];
2
3console.log(greeting);//"Hello"
4console.log(name);//"Sarah"
5