Object Sealing Lab: Object.seal() with JavaScript

Easy
16
81.2% Acceptance

In this lab, you will learn about using Object.seal() method in JavaScript to prevent new properties from being added to an object, and to prevent existing properties from being removed. You have to create a simple object named user with two properties, name and age. The object should then be sealed using the Object.seal() method. Finally, export a function that checks if a given object is sealed by using the Object.isSealed() method.