В каком примере есть описание класса с переменной ?
(Отметьте один правильный вариант ответа.)
Варианты ответа
Person = function(){ this.name = "Justin"; this.age = 16; this.legs = 2; this.head = new Object() this.head.eyes = 2; this.head.memories = new Array();}
MathPlus = new Object();MathPlus._proto_ = Math;MathPlus.oldMax = Math.max;MathPlus.max = function(x, y, z){ firstComparison = MathPlus.oldMax(x, y); secondComparison = MathPlus.oldMax(firstComparison, z); return secondComparison;}Object.prototype.Math = MathPlus;
Person.prototype.talk = function(){ trace("Привет, меня зовут "+ this.name +". Мне "+ this.age +" лет.");}
Person = function(name, age){ this.name = name; this.age = age; this.legs = 2; this.head = new Object() this.head.eyes = 2; this.head.memories = new Array();}(Верный ответ)