In the introduction to JS, I came across this statement:
We can add more conditions to our
else ifstatement. The
else ifstatement allows for more than two possible outcomes. You can add as many
else ifstatements as you’d like, to make more complex conditionals!
Immediately, I wondered what the practical limitations on this were. Is it, as I presume, unwise to chain together a large number of else if statements? If so, why, and how much is too much?