1 Thing Every JavaScript Developer Should Know in 2022

Stop using if statements unless absolutely necessary.

Jacob Sood
JavaScript in Plain English
3 min readJun 15, 2022

--

Photo by Barney Yau on Unsplash

Using if statements is a clunky way of writing code and should be avoided wherever possible (in most situations, this is almost 100% of the time).

Don’t get me wrong, if statements are useful in certain scenarios, and are there for a reason. However…

--

--

Software Engineer and Graphic Designer who enjoys writing about coding/design/growth every now and then! Find me at https://hrithviksood.me