+ 6
Please fill in the right keywords to test the conditions: (day_of_week) { case 1: case 2: case 3: case 4: case 5
I am struggling with is question. is it a for loop?
9 Respostas
+ 6
switch
break;
break;
+ 4
switch
break;
break;
+ 3
switch (day_of_week) {
case 1:
case 2:
case 3:
case 4:
case 5:
document.write("Working Days");
break ;
case 6:
document.write("Saturday");
break;
default:
document.write("Today is Sunday");
break;
}
+ 1
first one is 👉switch
2 is 👉break and also 3 is the same 👉break
0
switch
break;
break;
0
Thanks you
0
switch (day_of_week) {
case 1:
case 2:
case 3:
case 4:
case 5:
document.write("Working Days");
break ;
case 6:
document.write("Saturday");
break;
default:
document.write("Today is Sunday");
break;
}
Thank you!!!
0
switch (day_of_week) {
case 1:
case 2:
case 3:
case 4:
case 5:
document.write("Working Days");
break ;
case 6:
document.write("Saturday");
break;
default:
document.write("Today is Sunday");
break;
}
0
switch
break
break