JS Cash Register: Unanticipated Results in Automated Testing

As a non-native speaker, I found it challenging to fully grasp the expectations regarding the “OPEN” and “CLOSED” status in the solution. I have a specific suggestion, which I hope isn’t seen as a spoiler but rather a clarification: It might be helpful to mention in the description that the automated test expects zero values for coins and bills to be included in the results, but only when the status is ‘CLOSED’.

That’s not quite what the instructions say.

Return {status: "CLOSED", change: [...]} with cash-in-drawer as the value for the key change if it is equal to the change due.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.