When using a switch()
statement, you add break;
in between separate case:
declarations. But what about the last one?
Normally I just leave it off, but I'm wondering if this has some performance implication I'm not thinking about?
I've been wondering about this for a while and don't see it asked elsewhere on Stack-O, but sorry if I missed it.
I'm mainly asking this question regarding Javascript, although I'm guessing the answer will apply to all switch()
statements.