Roll back

Your task In the code box, make node index.js find, among the folders in releases/, the release just before the one in current (in version order), write it into current, and print Rolled back from 1.10.0 to 1.9.2. When there is no earlier release, print No earlier release to roll back to with console.error and end with exit code 1. Then press Run my code.

Getting the editor ready