2017-11-22 16:46:18 -08:00

8 lines
81 B
JavaScript

if (a === 1) {
foo = 1;
} else if (a === 2) {
foo = 2;
} else {
foo = 3;
}