Javascript program: Input character is VOWEL or CONSONANT
<html><head>
<title>Time Table</title>
</head>
<script>
var a=prompt("enter a value");
alert(a);
function theinputString(a)
{
if(a.match(/[aeiouAEIOU]/))
{
alert("The Input Character" +" " +a + " " + "is a vowel");
}
else {
alert("The Input Character" + " " +a + " " + "is a consonant");
}
}
theinputString(a);
</script>
</html>
No comments:
Post a Comment