Getters and setters


I was wanting to follow up about what is happening here. Are you setting the objects to the scores? I’m trying to get a better understanding of setters. I’m trying to understand every component before I move on so I’m going through the curriculum very slowly.

Learn JavaScript: Objects Team Stats

how is it that 2smoothent understands my explanation, and you don’t?

what scores?

run this code with and without the setter method, see the difference.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.