JavaScript Jabber cover image

Even More JavaScript Features You Should Avoid - JSJ 547

JavaScript Jabber

00:00

Is There a Difference Between a Separative Statement and a Return?

Short circuiting is a much cleaner approach for me for achieving that. So in other words, you're putting your else in a separative statement and return. If there's more than i put it in, i so i put that's why i said that. It goes hand in hand with having small functions. Usually i'll separate this entire sequence of doing this or that into its own function,. And then i would call that from the containing function  that would have done if they had been different.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app