Destructuring Array Part 1
محتوى الدرس
main.js
/*
Destructuring
- Object
- Array
- Parameter
*/
const food = ["Burger", "Pizza", "Chicken", "Meat", "Rice"];
const [one, , , four] = food;
console.log(`The Food I Love Is: ${one}, ${four}`);/*
Destructuring
- Object
- Array
- Parameter
*/
const food = ["Burger", "Pizza", "Chicken", "Meat", "Rice"];
const [one, , , four] = food;
console.log(`The Food I Love Is: ${one}, ${four}`);