Files
Mastering-Node.js-Web-Devel…/Chapter 03/primer/modules/weather.js
T
2024-05-29 18:54:49 +01:00

16 lines
389 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.WeatherLocation = void 0;
class WeatherLocation {
weather;
city;
constructor(weather, city) {
this.weather = weather;
this.city = city;
}
get weatherMessage() {
return `It is ${this.weather} in ${this.city}`;
}
}
exports.WeatherLocation = WeatherLocation;