es6-destructuring Flashcards

1
Q

What is destructuring, conceptually?

A

extracting data from arrays or objects

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the syntax for Object destructuring?

A

const { identifier } = expression

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How can you tell the difference between destructuring and creating Object/Array literals?

A

curly brace, square bracket

How well did you know this?
1
Not at all
2
3
4
5
Perfectly