Getters and setters


#1

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
#2

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.


#3

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