Setting & Deleting Properties
Explore how to add, update, and remove properties from JavaScript objects using dot notation and square bracket syntax. Understand how the delete operator works to remove properties and functions from objects, and when it cannot delete variables or global functions.
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.
Adding Properties
What if the ...
Ask