As you can see, the square function will act as a constructor if you call it with new. There is no special kind of thing that constructs new objects, every function is (potentially) a constructor.
Инфа —
33%
+
0
−
Ссылка на эту инфу —
https://infametr.org/infa/90156