The switch Statement - JS practice - 17.2 Dark Theme task problem
whyyy my code does'nt work... :((( Problem: The user can choose the color theme for the browser: 1. Light 2. Dark 3. Nocturne 4. Terminal 5. Indigo You are given a program that takes the number as input. Complete the program so that it will output to the console the theme according to input number. Sample Input 2 Sample Output Dark MY CODE: function main() { var themeNumber = parseInt(readLine(), 10) switch (themeNumber) { case 1: document.write("Light"); break; case 2: document.write("Dark"); break; case 3: document.write("Nocturne"); break; case 4: document.write("Terminal"); break; case 5: document.write("Indigo"); break; }