Using Reflect.preventExtensions()

35.5% Acceptance

In this lab, you will practice the usage of the Reflect.preventExtensions() method. This method prevents an object from having new properties added to it. First, create a JavaScript file called 'preventExtensions.js' where you will implement a given task. Then create a JavaScript object named 'user' in the 'preventExtensions.js' file. Afterward, use Reflect.preventExtensions() on the 'user' object to prevent adding any new properties to the object. Finally, export the 'user' object as the default export from the 'preventExtensions.js' file.