JavaScript Switch Statements Lesson Requires Unnecessary Break Statements

This lesson requires 3 break statements in the switch cases, but return statements are used—making the break statements redundant.

Furthermore, the lesson description does not highlight that return statements also will stop the switch statement.

the lesson expects you to assign a value to answer, you can make it work like that tho

Ohh, I apologize. Thank you.

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