Object.isFrozenintermediate// Check if an object is frozen
const obj = { a: 1 }
Object.isFrozen(obj) // β false
Object.freeze(obj)
Object.isFrozen(obj) // β trueUse Object.isFrozen() to verify that an object is fully immutable (no additions, deletions, or value changes allowed).
An empty object that has been made non-extensible is considered frozen, because there are no writable or configurable properties to violate the frozen constraint.
Challenge: Verify that an empty object after Object.preventExtensions is considered frozen.