How do Classes Help Us? this is corect but is not worging


#1


https://www.codecademy.com/en/courses/objects-ii/2/3
How do Classes Help Us?

Oops, try again. Make sure you created a Person called me

Replace this line with your code. 

function Person(name,age) {
  this.name = name;
  this.age = age;
}
// a function that prints the name of any given person
var printPersonName = function (p) {
  console.log(p.name);
};

var bob = new Person("Bob Smith", 30);
printPersonName(bob);

var my = new Person("Vasilis",53);
printPersonName(my);


#2

it needs to be var me


#3

var my = new Person("Vasilis",53);
printPersonName(my);


#4

it asks you to make a person named me, but you made one named my


#5

thank you i am stupid you ara rigth


#6

are rigth ..........................


#7

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.