File tree Expand file tree Collapse file tree
1-js/9-prototypes/5-class-inheritance
2-ui/1-document/9-attributes-and-custom-properties/1-get-user-attribute/solution.view Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -300,7 +300,7 @@ function Animal(name) {
300300
301301// Методы хранятся в прототипе
302302Animal .prototype .run = function () {
303- alert (this + " бежит!" )
303+ alert (this . name + " бежит!" )
304304}
305305
306306* ! *
@@ -323,7 +323,7 @@ Rabbit.prototype.constructor = Rabbit;
323323Rabbit .prototype .run = function () {
324324 // Вызов метода родителя внутри своего
325325 Animal .prototype .run .apply (this );
326- alert ( this + " подпрыгивает!" );
326+ alert ( this . name + " подпрыгивает!" );
327327};
328328
329329// Готово, можно создавать объекты
Original file line number Diff line number Diff line change 33
44< body >
55
6- < div data-widget-name ="menu "> Выберите жанр</ div >
6+ < div id =" widget " data-widget-name ="menu "> Выберите жанр</ div >
77
88 < script >
99 // ваш код
You can’t perform that action at this time.
0 commit comments