Javascript switch
The switch statement is a well known mechanism in coding terms. Still, there seems to be one edge case which needs a little attention. The edge case being the default clause. A switch is meant to replace a long series of if statements. It has the ...