Use more common word 'convention' over 'agreement'
This commit is contained in:
parent
a652580bfb
commit
d56c018903
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ That can be done using constructor functions and the `"new"` operator.
|
|||
|
||||
## Constructor function
|
||||
|
||||
Constructor functions technically are regular functions. There are two agreements though:
|
||||
Constructor functions technically are regular functions. There are two conventions though:
|
||||
|
||||
1. They are named with capital letter first.
|
||||
2. They should be executed only with `"new"` operator.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue