var person = {}; Object.defineProperty(person, "name", { writable: false, value: "Nicholas" }); alert(person.name); // "Nicholas" person.name = "Tom"; alert(person.name); // "Nicholas"