Nick Chapsas's Video: https://youtu.be/_ougvb8mT7k

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: https://youtu.be/v2tJ3nzXh8I?t=379
Optional Chaining Article: https://blog.webdevsimplified.com/2020-03/javascript-optional-chaining
Guard Clause Article: https://blog.webdevsimplified.com/2020-01/guard-clauses


Find Me Here:

My Blog: https://blog.webdevsimplified.com
My Courses: https://courses.webdevsimplified.com
Patreon: https://www.patreon.com/WebDevSimplified
Twitter: https://twitter.com/DevSimplified
Discord: https://discord.gg/7StTjnR
GitHub: https://github.com/WebDevSimplified
CodePen: https://codepen.io/WebDevSimplified


⏱️ Timestamps:

00:00 - Introduction
01:00 - Guard Clauses
04:03 - Single Return Is Bad
05:43 - Extract Functions


#StopUsingElse #WDS #JavaScript