+ 1

It is showing to put semicolon in Switch and more expressions.

https://code.sololearn.com/cM4iIq6B92L6/?ref=app

24th Oct 2023, 11:08 AM
Shourya Singh
Shourya Singh - avatar
2 Antworten
+ 4
I would review the lessons about using the switch statement. I'm pretty sure you're missing some important aspects, like breaking the case when you're finished and correct capitalisation.
24th Oct 2023, 12:58 PM
Ausgrindtube
Ausgrindtube - avatar
0
Depending on the language, semicolons may be compulsory (C and derivative languages, Java, etc.) and even where they are not (e.g. JavaScript) they are very helpful to break up the statements as required.
24th Oct 2023, 8:08 PM
Jonathan Shiell