up
This commit is contained in:
parent
58c04e2d2d
commit
fb03c7d539
1 changed files with 1 additions and 1 deletions
|
@ -208,7 +208,7 @@ john = {
|
|||
- Constructor functions or, shortly, constructors, are regular functions, but there's a common agreement to name them with capital letter first.
|
||||
- Constructor functions should only be called using `new`. Such call implies a creation of empty `this` at the start and returning the populated one at the end.
|
||||
|
||||
We can use constructor functions to make multiple similar objects. But the topic is much deeper than described here. So we'll return to it later and cover it more in-depth.
|
||||
We can use constructor functions to make multiple similar objects.
|
||||
|
||||
JavaScript provides constructor functions for many built-in language objects: like `Date` for dates, `Set` for sets and others that we plan to study.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue