Advertisement
Guest User

Untitled

a guest
Mar 24th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. class BankCustomer
  2. {
  3.  
  4. constructor(name, pin) {
  5. this.name = name;
  6. let pinS = pin;
  7.  
  8. this.getName = () => {
  9. return name
  10. }
  11.  
  12.  
  13. this.getPinS = () => {
  14. return pinS
  15. }
  16.  
  17. }
  18.  
  19. verifyPinInput(code) {
  20. if (code === this.getPinS()) {
  21. return true;
  22. }else{
  23. return false;}
  24.  
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement