
Even More JavaScript Features You Should Avoid - JSJ 547
JavaScript Jabber
00:00
The Problem Isn't the Go To.
A return kind of smells like a go to. Most developers these days, i don't think, experienced languages that make use of go tos. But if you keep your function small, there's no come from problem here. You know exactly where this return is going to send you to. If you're nesting, ifas ifsand else's you're going, you're going to get lost in em. I would much rather just use the f s and then return whatever it is they're asking me for at the end of the function.
Transcript
Play full episode