-
Notifications
You must be signed in to change notification settings - Fork 0
/
account.html
49 lines (41 loc) · 1.64 KB
/
account.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<!--
Hi professor
I have finished today’s assignment
It took me 3hours to finish the assignment
Here is the link https://solmn.github.io/account.html
I have changed the clock function to a class and added the necessary method to do the clock.
I have learned and practiced how to create class and added different methods and properties inside the class. I have also practiced how to create inheritance between different classes and re use common properties without duplicating the whole code.
In the bank account class i get a chance to practice calling methods polymorphically
-->
<html lang="en">
<head>
<!-- add mocha css, to show results -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mocha/3.2.0/mocha.css">
<!-- add mocha framework code -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/mocha/3.2.0/mocha.js"></script>
<script>
mocha.setup('bdd'); // minimal setup
</script>
<script src="js/clock.js"> </script>
<script src="js/account.js"> </script>
<script src="js/savingsaccount.js"> </script>
<script src="js/checkingAccount.js"> </script>
<!-- add chai -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/chai/3.5.0/chai.js"></script>
<script>
// chai has a lot of stuff, let's make assert global
let assert = chai.assert;
</script>
</head>
<body>
<img style="margin-left: 60px" src="images/mocha.png" width="85px" alt="mocha">
<img src="images/chai.jpg" width="100px" alt="chai.jpg">
<script src="js/account_test.js"> </script>
<div id="mocha"></div>
<!-- run tests! -->
<script>
mocha.run();
</script>
</body>
</html>