Create your own
teaching resources

Sign up for a free account to try! It takes less than 20 seconds

Teacherbot 12 Jan, 16:55:46

Rate();

function Client(name, balance) { this.name = name; this.balance = balance;

this.memberSince = new Date().toLocaleDateString(); }

Client.prototype = { withdraw: function () { }, deposit: function () { }, showBalance: function () { console.log(‘The balance of ${this.name} is ${this.balance}’); } };

const john = new Client(‘John’, 2000); console.log(john.showBalance());