Javascript switch vs. if...else if...else
- by John Hartsock
Guys I have a couple of questions:
Is there a preformance difference in Javascript between a switch statement and an if...else if....else?
If so why?
Is the behavior of switch and if...else if...else different across browsers? (FireFox, IE, Chrome, Opera, Safari)