0

Почему код не работает?

let number = readLine(); switch(number){ case 1: console.log("Light"); break; case 2: console.log("Dark"); break; case 3: console.log("Indigo"); break; }

20th May 2023, 3:15 PM
Maksims/マキシム
Maksims/マキシム - avatar
2 Respuestas
+ 1
Try to get number value: var num = parseInt(number); switch (num){ ...
20th May 2023, 7:16 PM
Smith Welder
Smith Welder - avatar