Проверка своих знаний по языку JavaScript.
Ссылка: @Portal_v_IT
Сотрудничество: @oleginc, @tatiana_inc
Канал на бирже: telega.in/c/js_test
РКН: clck.ru/3KHeYk
Post #6000
478
❗️Что будет на выходе:
Ответ: TypeError: rectangle, area is not a function at line 13
JavaScript test | #JavaScript
class Rectangle {
constructor(width, height) {
this.width = width;
this.height = height;
}
get area() {
return this.width * this.height;
}
}
const rectangle = new Rectangle(5, 10);
console.log(rectangle.area());
Ответ: TypeError: rectangle, area is not a function at line 13
JavaScript test | #JavaScript