Javascript Understanding If Else Statement Stack Overflow

Javascript Understanding If Else Statement Stack Overflow