Complete the code to define the Facade class constructor.
class Facade { constructor() { this.subsystem = new [1](); } }
The Facade class creates an instance of the Subsystem to simplify client interaction.
Complete the code to implement a Facade method that calls a subsystem method.
class Facade { operation() { return this.subsystem.[1](); } }
The Facade calls the 'run' method of the subsystem to perform the operation.
Fix the error in the Facade method to correctly call two subsystem methods.
class Facade { complexOperation() { this.subsystem.[1](); this.subsystem.[1](); } }
The Facade should call the 'execute' method twice to perform the complex operation.
Fill both blanks to complete the Facade method that coordinates subsystem methods.
class Facade { coordinate() { this.subsystem.[1](); this.subsystem.[2](); } }
The Facade coordinates by first initializing then starting the subsystem.
Fill all three blanks to implement a Facade method that manages subsystem lifecycle.
class Facade { lifecycle() { this.subsystem.[1](); this.subsystem.[2](); this.subsystem.[3](); } }
The Facade manages lifecycle by executing, starting, then shutting down the subsystem.