UNPKG

@ekamjotsingh.ek/energy-management-system

Version:
19 lines (18 loc) 542 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); // Class to represent maintenance staff class MaintenanceStaff { constructor(staffID, name) { this.staffID = staffID; this.name = name; } // Simulate scheduling maintenance scheduleMaintenance() { console.log(`Maintenance scheduled by ${this.name}.`); } // Simulate responding to alerts respondToAlerts() { console.log(`Responding to alerts by ${this.name}.`); } } exports.default = MaintenanceStaff;