#8 SyntaxError: Unexpected identifier


#1

var day = prompt("what day is it?","use mon,tue,wed,thu,fri")

switch day {
case 'mon':
console.log("I hate mondays");
break;
case 'tue':
console.log("better than mondays");
break;
case 'wed':
console.log("halfway there");
break;
case 'thu':
console.log("almost to the weekend");
break;
case 'fri':
console.log(":D");
break;
default:
console.log("use the 3 letter versions of the days");
}


#2

oooooh never mind i needed () around day