Constructors
Jump to navigation
Jump to search
Constructor
function Balance(current, deposit){ this.current = current; this.deposit = deposit; this.display=function(){ current +=deposit; console.log(current); } } var balance = new Balance(100,24); balance.display();