Day 17: Vowel Consonant Characters of 100DaysCodingChallenge
Hello all,
I have started the 100 days of coding challenge to improve my programming skills..
Today is the Day17 of 100DaysCodingChallenge for
Vowel Consonant Characters taken input by the user.
Code :
let c = prompt("Enter a Character : "); if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') { console.log(c, "Character is a Vowel.!"); } else if (c == 'A' || c == 'E' || c == 'I' || c == 'O' || c == 'U') { console.log(c, "Character is a Vowel.!"); } else { console.log(c, "Character is a Consonant.!"); }
Output :
Happy Coding:)
Comments
Post a Comment