24/30


#1

please help me wht's the wrong in my code

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

this.getBalance = function() {
// your code should return the bankBalance
return bankBalance ;
};
}

var john = new Person('John','Smith',30);
console.log(john.bankBalance);

// create a new variable myBalance that calls getBalance()
var myBalance = .john.getBalance();
console.log(myBalance);


#2
var myBalance = .john.getBalance();
//              ^
//        stray . character

#3

yeah i figuer out , thanks =D