DEV Community

Discussion on: If/else or just if?

Collapse
 
leob profile image
leob • Edited

I'd never code A, always B, no doubt about it. Since the 'return' statement ends execution there and then, IMO the 'else' clauses don't make sense at all.

Easy one I would say.