Setting & Deleting Properties

This lesson will teach you how to set properties using dot operators or square brackets, and how to delete properties.

Setting Values Using Dot Notation #

A property being accessed by the dot operator can be set/updated using the assignment operator (=).

Example #

Let’s take a look at an example to see the implementation.

Get hands-on with 1200+ tech skills courses.