Skip to main content

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]`?

Login Required

Please login to select answers and solve this question. You can view the question without logging in.

Code:
const person = {
  name: "Lydia Hallie",
  age: 21
}

[...person] // ["Lydia Hallie", 21]

Select the correct option: