#11 #javascript #hindi #video
//------------------------------Destructuring Assignment
var a = [1,2,3,4,5,6];
console.log(a[0]);
console.log(a[1]);
var x = a[0]);
var y = a[1]);
var [x, y, ...z] = a;
console.log(x)
console.log(y)
console.log(z);
var b = [{'a':1}, {'b':1}, {'c':1}];
var [x, y] = b;
console.log(x);
console.log(y);
Watch video learning javascript destructuring assignment | Object Destructuring in ES6 in JavaScript in Hindi online without registration, duration hours minute second in high quality. This video was added by user CodeWithKB 16 November 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 25 once and liked it 2 people.