-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathZaposleni.js
More file actions
42 lines (34 loc) · 824 Bytes
/
Zaposleni.js
File metadata and controls
42 lines (34 loc) · 824 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
34
35
36
37
38
39
40
41
42
module.exports = class Zaposleni {
constructor(ime, prezime, email, website = "") {
this.ime = ime;
this.prezime = prezime;
this.email = email;
this.website = website;
this.tip = "Zaposleni";
}
getIme() {
return "Ime: " + this.ime;
}
getPrezime() {
return "Prezime: " + this.prezime;
}
getEmail() {
return "Email: " + this.email;
}
getTip() {
return this.tip;
}
getWebsite() {
if(this.website === "")
{
return "Website: none";
}
else
{
return "Website: " + this.website;
}
}
getInfo () {
return this.getIme() + "<br>" + this.getPrezime() + "<br>" + this.getEmail() + "<br>" + this.getWebsite();
}
}