1 Thing Every JavaScript Developer Should Know in 2022
Stop using if statements unless absolutely necessary.
Published in
3 min readJun 15, 2022
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…