Skip to main content

Ivan Teoh

Something personal yet public

166-reflection1.js

(Source)

1
2
3
4
5
6
7
8
9
switch (expression) {
    case 'a':
    case 'b':
    case 'c':
        alphabet();
        break;
    default:
        nonAlphabet();
}