DEV Community

Discussion on: If vs Ternary vs Switch-Case for conditionals

Collapse
 
harleybl profile image
harleybl • Edited

Did you mean for the afternoon case in the last example to fall through to dinner? The way it is written you’ll never get lunch because of a missing break.

Collapse
 
obasekietinosa profile image
Etinosa Obaseki

Ah. No I didn't.
Thank you for pointing that out. I'll fix it right away.

Collapse
 
harleybl profile image
harleybl

No problem. The article was good otherwise.

Thread Thread
 
obasekietinosa profile image
Etinosa Obaseki

Thank you. Glad you think so.