You are on page 1of 1

<html>

<head>
</head>
<body>
<script>
var ch;
ch=prompt("enter any alphabet from a to z");
switch(ch)
{
case 'a':document.write("it is a vowel");
break;
case 'e':document.write("it is a vowel");
break;
case 'i':document.write("it is a vowel");
break;
case 'o':document.write("it is a vowel");
break;
case 'u':document.write("it is a vowel");
break;
default:document.write("it is a consonent");
}
</script>
</body>
</html>

You might also like