Type Your Code Here

const t = {"p":3}; // Create an object 't' with a property "p" set to 3 Object.preventExtensions(t); // Prevent any extensions to the 't' object (i.e., disallow adding new properties) delete t.p; // Attempt to delete the property "p" from the 't' object, but this operation will be ignored due to preventExtensions console.log ( t.hasOwnProperty ( "p" ) ); // Log whether the 't' object has the property "p" directly defined on it // expected output: false

Output: