News

In JavaScript, a switch statement is a control flow statement that allows you ... The expression can be complicated as long as it results in some sort of value. Let's take another example. Let's say ...
I tried to mimic the syntax of a switch statement as good as possible. The following example shows how to match against the UserAgent string to detect iOS devices. Note that the Regular Expressions ...
In my video on the SOLID principles applied to JavaScript, I showed a quick transformation ... In the talk, I showed the following switch statement as an example: There are several things I don’t like ...