0 / 60 seg.

How can you extract all the values from the following JSON object?

const data = '{"name":"John","age":30,"city":"New York"}';
const values = Object.values(JSON.parse(data));
console.log(values);