Skip to content

Commit a3de7b9

Browse files
committed
Creates Dog object
1 parent c48699f commit a3de7b9

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

‎Week3/homework/index.html‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
<title>Document</title>
88
</head>
99
<body>
10-
<script src="step2-1.js"></script>
10+
<!-- <script src="step2-1.js"></script>
1111
<script src="step2-2.js"></script>
12-
<script src="step2-3.js"></script>
12+
<script src="step2-3.js"></script> -->
1313
<script src="step2-4.js"></script>
14-
<script src="step2-5.js"></script>
15-
<script src="step2-6.js"></script>
14+
<!-- <script src="step2-5.js"></script> -->
15+
<!-- <script src="step2-6.js"></script>
1616
<script src="step2-7.js"></script>
1717
<script src="step3-bonus.js"></script>
18-
<script src="step3.js"></script>
18+
<script src="step3.js"></script> -->
1919
</body>
2020
</html>

‎Week3/homework/step2-4.js‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
'use strict';
22

33
function Dog() {
4-
// add your code here
4+
this.name = "Firulais";
5+
this.color = "black";
6+
this.numLegs = 4;
57
}
68

79
const hound = new Dog();
10+
console.log(hound);
811

912
// Do not change or remove anything below this line
1013
module.exports = hound;

0 commit comments

Comments
 (0)