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

Popular posts from this blog

Day 55: Pattern using loops of 100DaysCodingChallenge

Day 7: Square or Power Integer Numbers of 100DaysCodingChallenge

Day 45: Pattern using loops of 100DaysCodingChallenge