LLD - Behavioral Design Patterns — Part 2
Identify the problem in this Mediator implementation:
class Mediator {
notify(sender, event) {
console.log('Event received: ' + event);
}
}
const mediator = new Mediator();
mediator.notify('ComponentX');