25. Private Methods, code not working!


#1



https://www.codecademy.com/courses/objects-ii/4/4?curriculum_id=506324b3a7dffd00020bf661#


Hi how can I fix my code? in order to pass this lesson?


function Person(first,last,age) {
   this.firstname = first;
   this.lastname = last;
   this.age = age;
   var bankBalance = 7500;
  
    var returnBalance = function() {
      return bankBalance;
   }
       
   // create the new function here
    this.askTeller = function {
        return returnBalance;
    }
};

var john = new Person('John','Smith',30);
console.log(john.returnBalance);
var myBalanceMethod = john.askTeller();
var myBalance = myBalanceMethod();
console.log(myBalance);


#2

you miss something here after function