Switch case make weekly to do list
var day = "abc"
switch (day) {
case "Monday":
console.log("today is monday and go to office" );
break;
case "Tuesday":
console.log("today is Tuesday and go to mandir" );
break;
case "wednesday":
console.log("today is Wednesday and go to meeting");
break;
case "Thursday":
console.log("today is Thursday and go to sai baba mandir");
break;
case "friday":
console.log("today is Friday and last day of office" );
break;
case "saturday":
console.log("today is Saturday and go rest" );
break;
case "sunday":
console.log("today is sunday and go to movie" );
break;
default:console.log("no cond match")
}
Comments
Post a Comment