File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
'use strict';
2+
3+
// Case 1: Information model
4+
5+
class Passport {
6+
constructor(id, name, city, birthday) {
7+
this.id = id;
8+
this.name = name;
9+
this.city = city;
10+
this.birthday = birthday;
11+
}
12+
}
13+
14+
// Usage
15+
16+
const passport = new Passport('AA112233', 'Marcus', 'Roma', new Date());
17+
console.dir({ passport });

0 commit comments

Comments
 (0)