What will be the output of the following code when executed in strict mode?
"use strict";
var obj = {};
Object.defineProperty(obj, "x", { value: 10, writable: false });
obj.x = 20;
console.log(obj.x);
What will be the output of the following code when executed in strict mode?
"use strict";
var obj = {};
Object.defineProperty(obj, "x", { value: 10, writable: false });
obj.x = 20;
console.log(obj.x);