var color="black";
switch(color)
{
case"red"
document.write("This is red color")
break
case"green"
document.write("This is green color")
break
case"blue"
document.write("This is blue colour")
break
default
document.write("Color Not Found")
break
}
Output
Color Not Found
Comments
Post a Comment