You have already completed these exercises!
Do you want to take them again?
You completed the JS Destructuring Exercises from W3Schools.com
Share on:
Consider the following code:const fruits = ['Apple', 'Banana', 'Cherry'];let [x, y] = fruits;What will be the value of x?
const fruits = ['Apple', 'Banana', 'Cherry'];let [x, y] = fruits;
x
['Apple', 'Banana', 'Cherry']
['Apple']
Apple