Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class BankCustomer
- {
- constructor(name, pin) {
- this.name = name;
- let pinS = pin;
- this.getName = () => {
- return name
- }
- this.getPinS = () => {
- return pinS
- }
- }
- verifyPinInput(code) {
- if (code === this.getPinS()) {
- return true;
- }else{
- return false;}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement