Hello Guys,

I am a newbie who is aspiring to develop cool stuff one day. Right now, i am still really green and read the dummy manual. Please help me and i will really appreciate it a lot.

While doing one of the exercises, switch function, i cant seem to get it activated.

The code is as follows. I used alert function to test variable, die. Thus, i guess the main problem got to be the switch statements.

var die = Math.ceil(Math.random() * 6);
var output = "";

switch(die) {
case 1:
output = "I";
break;
case 2:
output = "II";
break;
case 3:
output = "III";
break;
case 4:
output = "IV"
break;
case 5:
output = "V";
break;
case 6:
output = "VI";
break;
default:
output = "PROBLEM!";
}