Write the function vowelsAndConsonants
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.
javascriptloops
a
a
i
o
o
j
v
s
c
r
p
t
l
p
s