Why setters are not working in this function

4 posts were merged into an existing topic: Object creation (confused about how to declare properties)