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



Smartphone icons created by Freepik - Flaticon

JS Object.defineProperty()

This example changes a property value.

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

// Change a property
Object.defineProperty(person, "language", {value:"NO"})
document.getElementById("demo").innerHTML = person.language;