es6-destructuring Flashcards
1
Q
What is destructuring, conceptually?
A
using properties in an object to create variables
2
Q
What is the syntax for Object destructuring?
A
const {}= object name
3
Q
What is the syntax for Array destructuring?
A
putting array pairs in const , then using key pairs to extract value
4
Q
How can you tell the difference between destructuring and creating Object/Array literals?
A
the reassingment for desturcturing happends at the end