0
Почему код не работает?
let number = readLine(); switch(number){ case 1: console.log("Light"); break; case 2: console.log("Dark"); break; case 3: console.log("Indigo"); break; }
2 Respuestas
+ 1
Try to get number value:
var num = parseInt(number);
switch (num){
...