© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Sandeep Panda
co-founder, Hashnode
The 2nd type is known as early return. I use it often, but sometimes I choose else clause as well.
else
Thamaraiselvam
Lead Consultant at ThoughtWorks
Thanks for the link :+1: