0
What is the output of the following JavaScript code?
const obj = { name: "Alice" };
Object.defineProperty(obj, "age",
{
value: 25,
writable: false
});
obj.age = 30;
console.log(obj.age);- Aundefined
- BError: Cannot modify property
- C25
- D30
Correct answer: C