Parentheses is included in a parameter list only if there is minimum of 1 parameter
Answers
Answered by
0
So I've noticed that sometimes, when we write functions/methods, we set them up with defined parameters/expected arguments in the parentheses, and sometimes we don't. I tried looking up the reason, and tried to muddle my way through a site packed with jargon that I haven't yet learned (hoisting? anonymous? self-invoking?) and decided that I'd try asking someone directly, instead.
For example, in the code from 24/33, 'Constructors With Method', the given code contains the following:
Similar questions
English,
6 months ago
English,
6 months ago
Social Sciences,
1 year ago
Math,
1 year ago
English,
1 year ago