Purpose of Reflect: Exploring Properties

Learn how the Reflect class helps access and explore properties in JavaScript.

Getting and setting properties

In Dynamic Access, we explored ways to dynamically access properties. Reflect provides alternatives to both get and set properties.

Example

Let’s take a look at the Person class:

Get hands-on with 1400+ tech skills courses.