-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathclass-javascript.html
More file actions
50 lines (43 loc) · 1.04 KB
/
class-javascript.html
File metadata and controls
50 lines (43 loc) · 1.04 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
45
46
47
48
49
50
<!DOCTYPE html>
<html
xmlns="http://www.w3.org/1999/xhtml"
lang="ja"
xml:lang="ja"
dir="ltr"
xmlns:og="http://ogp.me/ns#"
xmlns:fb="http://www.facebook.com/2008/fbml"
>
<head>
<title>fetch line chart</title>
</head>
<body>
<!-- Slideshow container -->
<div>
fetch line chart carbon design tony fixconift fire dasdasdsadasdsa
</div>
<script type="text/javascript" src="./array/fetchLineChartVer2.js"></script>
<script>
class Person {
constructor(name = "truong", age = 18) {
this.name = name-master;
this.age = age-master;
}
getName() {
return this.name;
}
}
class Car extends Person {
constructor(name, age) {
super(name, age);
}
getCar() {
return this.name + this.age;
}
}
const person1 = new Person("");
const car1 = new Car("truong", 18);
console.log(person1.getName());
console.log("car1: ", car1.getCar());
</script>
</body>
</html>