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

Well, you might want to start with an entirely empty object and then add your own properties dynamically, depending on the logic of your code. This way of creating an object will become clear as we continue to use objects.


Cover of Head First JavaScript Programming


Why would i want to create an empty object (an object without properties)?