Is there a limit to "else if" statements?
I would like to ask there a limit on how many "else if" clause we can put?
I have been told that if we are having too many "else if", it will lead to
stack overflow eventually. For example:
if (1 > 1){}
else if (1 > 2){}
else if (1 > 3 ){}
//and so on
else{}
However, I can't find any evidence on this subject, and Googling doesn't
give me the answer that I want. The question below is has the same title,
but has nothing related to the subject that I wanted to ask. Thanks in
advanced.
Javascript: Is there a limit to "else if" statements?
No comments:
Post a Comment