ES6 DESTRUCTURING Flashcards
1
Q
What is destructuring, conceptually?
A
Declaring and intializing properties from array and objects
2
Q
What is the syntax for Object destructuring
A
let { } = variable
3
Q
What is the syntax for Array destructuring?
A
let [ ] = variable [,,, numbers]
4
Q
How can you tell the difference between destructuring and creating Object/Array literals?
A
{ }, [ ] left for destruture
{ }, [ ] right for creating