The JavaScript Reflect object provides a collection of static methods that allow developers to perform object operations in a standardized way.
In this chapter, you will learn about the commonly used methods of the JavaScript Reflect object.
The Reflect object was introduced in ES6 (ECMAScript 2015) and provides methods for interacting with objects, properties, and functions. These methods are useful for performing operations such as property access, property assignment, object creation, and function invocation.
Unlike most global objects, Reflect is not a constructor and cannot be instantiated using the new keyword.
The following are the commonly used methods of the JavaScript Reflect object:
| Method | Description |
|---|---|
| Reflect.apply() | Calls a function with a specified this value and arguments. |
| Reflect.construct() | Creates a new object using a constructor function. |
| Reflect.defineProperty() | Defines a new property on an object. |
| Reflect.deleteProperty() | Deletes a property from an object. |
| Reflect.get() | Retrieves the value of a property. |
| Reflect.getOwnPropertyDescriptor() | Returns the property descriptor of a property. |
| Reflect.getPrototypeOf() | Returns the prototype of an object. |
| Reflect.has() | Checks whether a property exists in an object. |
| Reflect.isExtensible() | Determines whether an object can be extended. |
| Reflect.ownKeys() | Returns an array of an object's own property keys. |
| Reflect.preventExtensions() | Prevents new properties from being added to an object. |
| Reflect.set() | Sets the value of a property on an object. |
| Reflect.setPrototypeOf() | Sets the prototype of an object. |
We request you to subscribe our newsletter for upcoming updates.

We deliver comprehensive tutorials, interview question-answers, MCQs, study materials on leading programming languages and web technologies like Data Science, MEAN/MERN full stack development, Python, Java, C++, C, HTML, React, Angular, PHP and much more to support your learning and career growth.
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India