DEV Community

Discussion on: 10 tips to improve readability in Javascript

Collapse
 
jodator profile image
Maciej

@bytebodger The simple if-else usually don't need else so I personally would stick to if + return (first refactor) when the if or else blocks have a few lines. The second and third only if the cases are simple 👍.

@dinhhuyams nice summary :)