JavaScript Question 153
Question 153 of 0JavaScript
What should the value of `method` be to log `{ name: "Lydia", age: 22 }`?
Code:
const keys = ["name", "age"]
const values = ["Lydia", 22]
const method = /* ?? */
Object[method](keys.map((_, i) => {
return [keys[i], values[i]]
})) // { name: "Lydia", age: 22 }