JavaScript Question 144
Question 144 of 0JavaScript
What do we need to add to the `person` object to get `["Lydia Hallie", 21]` as the output of `[...person]`?
Code:
const person = {
name: "Lydia Hallie",
age: 21
}
[...person] // ["Lydia Hallie", 21]