<script>
function Human()
{
this.name = name;
this.sex = sex;
this.lang = lang;
this.age = age;
Human.prototype.eldest = function ()
{
var max = 0;
var maxAge = "";
for (var age in Human)
{
if(max <Human.age)
{
max = Human.age;
maxAge = age;
alert ( maxAge)
}
}
}
var Ken = new Human(Ken, male, eng, 28);
var Pol = new Human(Pol, male, eng, 22);
var July = new Human(July, male, uk, 25);
var Bill = new Human(Bill, male, rus, 36);
</script>
Вот чтото такое придумал, но не работает???