
Even More JavaScript Features You Should Avoid - JSJ 547
JavaScript Jabber
00:00
Switch Statement in Java Script
In java script, you can actually reversethe what you put in the switch and what youput in the cases. In other programming languages, like a, like, let's say s switches are often a sequence of ifs. Ruby dos that too, cause it evaluates it on a triple equal yes, so, which is a fuzzy match,. And again, that o just goes to show that there really is hardly any benefit, even over a sequence ofIf ande. The last item that i have on my list, unless you have additional suggestions, is something that, again, i'm probably, i'm doubtful that many people, a no, even existed.
Transcript
Play full episode