Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How to Destructuring Array in Javascript?

//destructuring array 
const alphabet = ['a', 'b', 'c', 'b', 'e'];
const [a, b] = alphabet;
console.log(a, b);
//Expected output: a b
Source by dmitripavlutin.com #
 
PREVIOUS NEXT
Tagged: #How #Destructuring #Array
ADD COMMENT
Topic
Name
8+6 =