6 ms·
> JavaScript allows for objects to be left in an inconsistent state right after being created, as their properties don’t need to be initialised. No, you just f
by minitech 10y ago
> JavaScript allows for objects to be left in an inconsistent state right after being created, as their properties don’t need to be initialised.
No, you just forgot to put `this` in front of `width` and `height`. (Arguments do default to `undefined`, though.)