This site is mobile accessible. Press the "Tap Here" button to use a smaller font-size.



Smartphone icons created by Freepik - Flaticon

JS Object.keys()

This example list the enumerable properties of an object.

// Create an object:
const person = {
  firstName: "John",
  lastName: "Doe",
  language: "EN"
}

// Change Property
Object.defineProperty(person, "language", {enumerable:false});

// Display Properties
document.getElementById("demo").innerHTML = Object.keys(person);