0% found this document useful (0 votes)
54 views1 page

Vowel or Consonant Identifier Script

The document contains a simple HTML script that prompts the user to enter an alphabet letter from 'a' to 'z'. It uses a switch statement to determine if the entered letter is a vowel (a, e, i, o, u) or a consonant, displaying the result accordingly. The script outputs either 'it is a vowel' or 'it is a consonant' based on the user's input.

Uploaded by

Poonam Lathwal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views1 page

Vowel or Consonant Identifier Script

The document contains a simple HTML script that prompts the user to enter an alphabet letter from 'a' to 'z'. It uses a switch statement to determine if the entered letter is a vowel (a, e, i, o, u) or a consonant, displaying the result accordingly. The script outputs either 'it is a vowel' or 'it is a consonant' based on the user's input.

Uploaded by

Poonam Lathwal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

<html>

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

You might also like