-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.ts
More file actions
36 lines (22 loc) · 871 Bytes
/
main.ts
File metadata and controls
36 lines (22 loc) · 871 Bytes
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
import { School } from "./entities";
import { getClassYoungestStudent as getClassYoungestStudentFullName, initializeSchool, initializeSchool2, printSchool, transferStudent } from "./services";
const school: School = initializeSchool();
// Task 1
printSchool(school);
// Task 2
// Because it's not exported, and also commented. Also there is no conts Subjects, from which we can get it for our classes.
// Task 3
// In services.ts and constants.ts files
// Task 4
// helpers.ts and services.ts
// Task 5
console.log(getClassYoungestStudentFullName(school.classes[1]));
// Task 6
// services.ts
// Task 7
console.log('########################################')
transferStudent('Vasya Sidorov', school.classes[1], school.classes[0]);
printSchool(school);
// Task 8
const school2: School = initializeSchool2('Licey','Ivanovo','+9008', 2);
printSchool(school2);