
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. 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. 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. It usually goes hand in hand with overly complex functions and logic. That's been my experience. And i actually think that this is something that a j tends to agree with me about, but we can ask em.
Transcript
Play full episode