Day 2: Loops :- 10 Days Of Javascript HackerRank Solution
Day 2: Loops :- 10 Days Of Javascript HackerRank Solution Objective In this challenge, we practice looping over the characters of string. Check out the attached tutorial for more details. Task Complete the vowelsAndConsonants function in the editor below. It has one parameter, a string, , consisting of lowercase English alphabetic letters (i.e., a through z ). The function must do the following: First, print each vowel in on a new line. The English vowels are a , e , i , o , and u , and each vowel must be printed in the same order as it appeared in . Second, print each consonant (i.e., non-vowel) in on a new line in the same order as it appeared in . Input Format Locked stub code in the editor reads string from stdin and passes it to the function. Output Format First, print each vowel in...