Answer to Question #229777 in HTML/JavaScript Web Application for Kam

Question #229777

 Write a program that prints the ASCII character codes for the upper case and lower-case

vowels. Hint: ASCII codes for A, E, I, O, U, a, e, i, o, u are required here


1
Expert's answer
2021-08-27T05:20:22-0400
// check cosnole for check result F12


function CharacterCodesVowels(){
   const arrVowels = ['A', 'E', 'I', 'O', 'U', 'a', 'e', 'i', 'o', 'u'];
   for (const char of arrVowels) {
      console.log( `${char}: ${char.charCodeAt()}`);
      // or
      //alert(`${char}: ${char.charCodeAt()}`)
   }
}


CharacterCodesVowels()

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS