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
−
Ссылка на эту инфу —
/infa/90156
2018-01-27 14:49:08 +0000 +0000