I dont see whats wrong with the code and its its showing I need a ' ; '


#1

var month = prompt ("What day is it?");
var day == 1;
var date == 0;
switch(month) {
case 0;
if(day || date) {
console.log("Happy New Year");
}else{
console.log("Good day");
}
break;
case 1;
if(day && date) {
console.log("Happy New Year");
}else{
console.log("Good day");
}
default:
console.log("Nice Day!")
break;
};


#2

First of all, this is not how you assing a value to a variable. Double equal sign is a comparison operator used to compare values, not to assign them.

var day == 1; // Wrong
var day = 1; // Correct

Secondly, cases in switch statements end with colon, not semicolon.

case 1:
  codeblock;
  break;
case 2:
  codeblock;
  break;

Hope this helped!


#3

I think that you don't understand "switch" function:

eg. case 0: or case 1: this isn't an enumeration of cases, 0, 1, etc.
case is a condition, eg. if( a == 6): {do this} or case 6: {do this}
I'm not a fun of JS, i think your code is wrong. If this is legal i can't see where you use case condition from variable name "month"
You declared variable wrong, you have to use reference "=" not operator "=="