DEV Community

Discussion on: A New Coding Style for Switch Statements in JavaScript/TypeScript

Collapse
 
dbeals profile image
Donny Beals

I've actually always coded multi-line switch statements like that because of the scoping and it's easier to read IMO.

I've always been confused as to why it doesn't follow the same rules of an conditional / loop structure, requiring braces for multi-line.