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());
Loading...