Master Object.values() in JavaScript
Easy
10
3
71.9% Acceptance
In this lab, you will learn about the Object.values()
method in JavaScript. It takes an object as an argument and returns an array consisting of the object's values. Your task is to create a person
object and a function named personValues()
that will use the Object.values()
method to return an array of the person
object's values. Finally, export the person
object and the personValues()
function using ESM syntax and log the result of calling the function.