Hello, I started to learn Javascript form www.w3schools.com I looked at Switch Statement. http://www.w3schools.com/js/js_switch.asp
Example was with week days:
0- Sunday
1- Monday
...
So, i decided to try do the same with minutes. But I don't know, how to do this correctly.
My code:
x=new Date()
time=x.getMinutes()
switch (time)
{
case time<20:
document.write("20 minutes");
break;
case time>20 && time<50:
document.write("between 20 and 50 minutes");
break;
default:
document.write("WTF");
}
So, can I use time<20 after case? If I not, how to do the same with minutes? Thank you.


