var x = 1; switch (x) { case 1: document.write(1); }