23. Private Variables



Oops, try again. It looks like you didn't try to print john's bankBalance!, I do not understand.

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

// create your Person 
var john = new Person("John Green", 75);
var bankBalance = john.bankBalance;


Do you remember how to print something in javascript?
are you doing that?


???I don't understand


It says to print something.
You're not printing anything, there is no instruction in your code which has the effect of printing


I figured it out


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