MDN will be in maintenance mode for a brief period Tuesday June 2, from around 10:00 AM until no later than 12:00 PM Pacific (in UTC, Tuesday June 2, 5:00 PM to 7:00 PM). There should be no disruption in service.

Natalya_Surikova

Член от
Natalya_Surikova

Скоро променяни документи

Преглед на цялата активност
Страница Дата Коментар

Array.of()


super


Example Edit Using super in classes the fragment of the code: set area(value) { this.area = value; } I think, that it's more reasonable to set this.width and this.height because I see no way to split the.area between required this.width and this.height.

super


Example Using super in classes. The fragment of the code: class Square extends Polygon { constructor(length) { this.height; // ReferenceError, super needs to be called first! I see no reason to use this.height; here. It just shows us that super is needed.

Strict mode


Используемое ранее "упреждающие" было семантически неверно, и я исправила его на "предвосхищающие", т.к. "упреждать" в русском чаще всего ассоциируется с ПРОТИВОДЕЙСТВИЕМ.

Node.textContent