Struggling with Switch Statement Exercises
Instructions: Switch statements 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 This is my latest try: function main() { var themeNumber = parseInt(readLine(), 10) /* 1 - Light 2 - Dark 3 - Nocturne 4 - Terminal 5 - Indigo */ // Your code here switch (main){ case 1: var text = "Light"; console.log(light); break; } } I haven't done all the statements as I keep getting no output for the first test. Can someone help me work out what I am doing wrong?