Write Your JavaScript Code Here

// freeze(): freeze the object that prevent new prperty being add to it. // Object.freeze(object) const obj1={ name:"Maximus" } obj1.Fuel="92octane";//here we can add the new property console.log(obj1); Object.freeze(obj1); obj1.Fuel2="98octane";//new property can't be added here console.log(obj1);

Output: