1
classEducation{
2
constructor(education, position, startDate, endDate) {
3
this.education = education;
4
this.position = position;
5
this.startDate = startDate;
6
this.endDate = endDate;
7
}
8
9
displayEducation() {
10
return`
11
Education:  ${this.education}
12
Position:  ${this.position}
13
Start Date:  ${this.startDate}
14
End Date:  ${this.endDate}
15
`;
16
}
17};
18
19
consteducation1=newEducation(
20
'SMK Negeri 5 Banjarmasin',
21
'Teknik Komputer & Jaringan',
22
'2011',
23
'2014',
24);
25
26
consteducation2=newEducation(
27
'STMIK Banjarbaru',
28
'Teknik Informatika',
29
'2014',
30
'2018',
31);
32
33
console.log(education1);
34
console.log(education2);