Рет қаралды 1,234,973
Nick Chapsas's Video: • Why I don't use the "e...
This may sound crazy but I really don't use the else keyword in my programming anymore. When I do end up using else it usually leads to worse code than if I purposely avoided it. In this video I explain exactly why that is.
📚 Materials/References:
Optional Chaining Video: • 5 Must Know JavaScript...
Optional Chaining Article: blog.webdevsimplified.com/202...
Guard Clause Article: blog.webdevsimplified.com/202...
🌎 Find Me Here:
My Blog: blog.webdevsimplified.com
My Courses: courses.webdevsimplified.com
Patreon: / webdevsimplified
Twitter: / devsimplified
Discord: / discord
GitHub: github.com/WebDevSimplified
CodePen: codepen.io/WebDevSimplified
⏱️ Timestamps:
00:00 - Introduction
01:00 - Guard Clauses
04:03 - Single Return Is Bad
05:43 - Extract Functions
#StopUsingElse #WDS #JavaScript