Question on the School Catalogue Project in the JS Classes Lesson

Hi there,

General question on something that came up in the School Catalogue project (https://www.codecademy.com/paths/web-development/tracks/webdev-intermediate-javascript/modules/learn-javascript-classes/projects/school-catalog) in the JS Classes lesson.

The project asks you to call two different methods to get information:

lorraineHansbury.quickFacts();

and:

alSmith.sportsTeams;

I’m confused as to why one would include the “( )” and one would not. Is it because one is calling a method on the class vs the subclass? Or because one is calling a getter method and those are handled differently?

Thanks in advance for the help!

Ben

Seems you answered your own question?

Getters and setters allow us to change the behavior of a property, so they have the same syntax as a property (alSmith.sportsTeams) or in general terms: object.property

Thanks for the information. That helps!