Now you know what objects are and their basic features and advantages. In short, they are key-value stores which provide a flexible, intuitive way to structure data, and, they provide very fast lookup time.
In earlier posts, we have both added to and modified an object's key-value pairs.
Here we will see how we can remove a key-value pair from an object. Let's revisit our foods object example one last time. If we wanted to remove the oranges, plums, and strawberries keys, we can remove it by using the delete keyword like this:
Top comments (0)