23/30?


#1

function Person(first,last,age) {
this.firstname = first;
this.lastname = last;
this.age = age;
var bankBalance = 7500;
}

// create your Person
var lock = new Person('Lock','Mechx',24);
var myFirst = lock.firstName;
var myLast = lock.lastName;
var myAge = lock.age;
// try to print his bankBalance
var bankBalance = 10000;

Oops, try again. Make sure to create john using the Person constructor


#2

please remove var lock and replace with var john