HTML and CSS Reference
In-Depth Information
else if (month == 6) {
alert("June");
}
else if (month == 7) {
alert("July");
}
else if (month == 8) {
alert("August");
}
else if (month == 9) {
alert("September");
}
else if (month == 10) {
alert("October");
}
else if (month == 11) {
alert("November");
}
else if (month == 12) {
alert("December");
}
else{
alert("Invalid month");
}
</script>
6. Consider the following example:
var start_time = (day == weekend) ? 12 : 9;
Rewrite the conditional statement using an if/else construct.
Search WWH ::




Custom Search