• + 1 comment

    The challenge is broken in JavaScript. The temp var. in the main function should be let instead of const, so it can be reassigned.