How to use a Chain of Responsibility design pattern in JavaScript

Do you need to eliminate massive, nested if-else blocks that make your source code shaky? I demo a decoupled request-handling system using…