-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathShop.js
102 lines (102 loc) · 2.83 KB
/
Shop.js
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
var Shop = /** @class */ (function () {
function Shop(_name, _address, _city, _region, _country, _phone, _openDate, _closeDate) {
this._name = _name;
this._address = _address;
this._city = _city;
this._region = _region;
this._country = _country;
this._phone = _phone;
this._openDate = _openDate;
this._closeDate = _closeDate;
}
Object.defineProperty(Shop.prototype, "name", {
get: function () {
return this._name;
},
set: function (value) {
this._name = value;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Shop.prototype, "address", {
get: function () {
return this._address;
},
set: function (value) {
this._address = value;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Shop.prototype, "city", {
get: function () {
return this._city;
},
set: function (value) {
this._city = value;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Shop.prototype, "region", {
get: function () {
return this._region;
},
set: function (value) {
this._region = value;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Shop.prototype, "country", {
get: function () {
return this._country;
},
set: function (value) {
this._country = value;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Shop.prototype, "phone", {
get: function () {
return this._phone;
},
set: function (value) {
this._phone = value;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Shop.prototype, "openDate", {
get: function () {
return this._openDate;
},
set: function (value) {
this._openDate = value;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Shop.prototype, "closeDate", {
get: function () {
return this._closeDate;
},
set: function (value) {
this._closeDate = value;
},
enumerable: false,
configurable: true
});
return Shop;
}());
var myShop = new Shop("Nico's barber", "Rivera 345", "Colonia del Sacramento", "Colonia", "Uruguay", "+59899034563", "9:00", "20:30");
console.log(myShop.name);
console.log(myShop.address);
console.log(myShop.city);
console.log(myShop.region);
console.log(myShop.country);
console.log(myShop.phone);
console.log(myShop.openDate);
console.log(myShop.closeDate);