3/24/2020 3:06:05 PM
If it is a function, you use parenthesis to call it.
If you are assigning it as callback, then you don't use parenthesis.
Considering that person is a reference to an object of a class. You can call it by person.yearOfBirth();
Also you can use the code playground to run and see it for yourself.
GET THE FREE APP
Learn Playing. Play Learning
Send us a message