1const tf = function(x) { 2 switch(x) { 3 default: 4 print("default"); 5 break; 6 case 1: 7 print("1"); 8 break; 9 case 2: 10 print("2"); 11 } 12} 13tf(1); 14tf(2); 15tf(3);