Short-circuiting in Javascript
Logical operators in Javascript are used to combine two boolean values. But there are many more things that we can do with them, especially with the AND and the OR operator. One of those things is known as short-circuiting.
In this article, we will ...
isaac-junior.hashnode.dev5 min read
Elena Kazakova
It was helpful, thanks! It would be great to know what are the pros and cons, the differences between this approach and the 'if' or ternary operator.