-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprototype_inheritance.html
More file actions
44 lines (38 loc) · 1.43 KB
/
Copy pathprototype_inheritance.html
File metadata and controls
44 lines (38 loc) · 1.43 KB
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
<!DOCTYPE html>
<!--
Hi profesor
I have finished todays prototype inheritance assignment.
It took me 2 hours to finish the assignment.
Here is the link to the assignment https://solmn.github.io/prototype_inheritance.html
I have practiced about what we learned in the class today. I have also get more grasp
about how to change the native prototype and extend the builtin libraries to have some
extra cool features. I have added buble sort feature to the Array object and i have also
added filter method to string. its a very cool feature.
-->
<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>
<!-- 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/prototype.js"> </script>
<div id="mocha"></div>
<!-- run tests! -->
<script>
mocha.run();
</script>
</body>
</html>