NetCom Learning interview question

what is Destructuring Arrays. what is spread operator.

Interview Answer

Anonymous

12 Sept 2024

const fruits = ["apple", "banana", "orange"]; const [firstFruit, secondFruit, thirdFruit] = fruits; console.log(firstFruit); console.log(secondFruit); console.log(thirdFruit);