If you use double equals instead of triple equals, even if the variable value is false or 0, it satisfies the condition. We get myString is Empty and myString2 is Empty for the following conditions
By checking if the variable is falsy and its length is 0.
Why to check if the variable is falsy, isn’t checking the length alone is not sufficient ?
Leave A Comment