O'Reilly logo
  • Ahmed Elgendy thinks this is interesting:

How to add a new property. You can extend your object at any time with new properties. To do this you just specify the new property and give it a value. For instance, let’s say we want to add a boolean that indicates when the Fiat needs to be washed:


Cover of Head First JavaScript Programming


How to extend the object's properties?