+ 12

What does it actually mean in JS?

"All classes have a contructor, whether one is specifically defined or not."

30th Jan 2018, 6:04 AM
Tran Huu Dang
Tran Huu Dang - avatar
1 Respuesta
+ 12
that means that compiler generate empty constructor if you don't define any so you can create objects of some class that haven't constructor, and that object of that class will not have any attributes
30th Jan 2018, 10:42 AM
Vukan
Vukan - avatar