-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmentor.js
More file actions
30 lines (27 loc) · 888 Bytes
/
mentor.js
File metadata and controls
30 lines (27 loc) · 888 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
class Mentor {
constructor(name, url) {
this.id = url;
this.name = name;
this.url = url;
console.log("Created mentor " + this.name + " (id " + this.id + ")");
}
// sets basic event details
setDetails(degree, bio, imageUrl, team) {
this.degree = degree;
this.bio = bio;
this.imageUrl = imageUrl;
this.team = team;
console.log("Set details for mentor " + this.name + " (id " + this.id + ")");
}
// prints event to the console
print() {
console.log("Mentor: " + this.name);
console.log("\tID: " + this.id);
console.log("\tURL: " + this.url);
console.log("\tDegree: " + this.degree);
console.log("\tBio: " + this.bio)
console.log("\tImageURL: " + this.imageUrl);
console.log("\tTeam: " + this.team);
}
}
module.exports = Mentor;