Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Some random Classes and properties extraction examples
- function Account (holder, cardType, limit, interest, boolean, dateOfBirth) {
- this.accountHolder = holder;
- this.cardType = cardType;
- this.dateOfBirth = dateOfBirth;
- var creditLimit = limit;
- var interestRate = interest;
- var membershipFee = boolean;
- this.accountVerified = function (name, dob) {
- if (name === this.accountHolder || dob === this.dateOfBirth) {
- console.log("Thank you for verifying the information");
- //getChar();
- console.log("The account's credit limit is " + creditLimit);
- console.log("The account's APR is " + interestRate);
- if (membershipFee === true) {
- console.log("The account does have a membership fee");
- }
- else {
- console.log("The account does not have a membership fee");
- }
- }
- };
- }
- var myCard = new Account("Daniel Alvarado", "Mastercard", 3500, 0.24, false, "04/11/1991");
- myCard.accountVerified("Daniel Alvarado", "04/11/1991");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement