app.ts 367 B

12345678910111213
  1. /// <reference path="./membership.ts" />
  2. /// <reference path="utilityfunctions.ts" />
  3. // Notice the difference with ES2015 module import.
  4. import util = Utility.Fees;
  5. let memberName = 'Elaine';
  6. let memberNumber = 789;
  7. Membership.AddMember(memberName);
  8. Membership.Cards.IssueCard(memberNumber);
  9. let fee = util.CalculateLateFees(10);
  10. console.log(`Late fee: ${fee}`);