0 of 8 problems solved • 0%
Use in a course

Exercise prompt

List Object Keys

Object.keys(object) creates an array containing an object's property names.

Example

const user = { name: "Mira", age: 20 }; const keys = Object.keys(user);

Your task

Create settingKeys from the supplied object and display Keys: theme,language,compact.