es6-destructuring Flashcards
1
Q
What is destructuring, conceptually?
A
extract data from/access values in arrays and objects
2
Q
What is the syntax for Object destructuring?
A
curly braces
3
Q
What is the syntax for Array destructuring?
A
brackets
4
Q
How can you tell the difference between destructuring and creating Object/Array literals?
A
variable name is on the left when creating, whereas destructuring the variable that we are referencing is on the right