DEV Community

Discussion on: If/else or just if?

Collapse
 
maixuanhan profile image
Han Mai • Edited

For easier readable, I prefer Statement B.
You know? This remind me the break statement comes after a return in switch...case. For such the case, I support break should come after finish every case branch. Just for safe 🙂