Reflect.preventExtensions() JavaScript
The JavaScript Reflect.preventExtensions() method prevents any future extensions to an object i.e. prevents addition and modification of properties. It is It is similar to Object.preventExtensions(). Syntax: Reflect.preventExtensions(target) Parameters: target: It represents the object that prevents extensions. Return: It returns true if the target object was successfully set to prevent extensions otherwise returns false. Note: It … Read more