Trying to print any vowels from a word on a new line in the order they appear. 
Then do the same for each constant after all the vowels have been printed.

I've tried using breaks and a switch case but the code wouldn't work. 

```
function vowelsAndConsonants(s) {
    var atom = s.length;
    var i = 0;
    while (i <= atom)
    {
        if (s[i] === 'a' || s[i] === 'e' || s[i] === 'i' || s[i] === 'o' || s[i] === 'u') {
            console.log('\n' + s[i]);
        }
        else {
            console.log('\n' + s);
        }
    }

}

```

I expect an output to be like:

```
a
i
o

```

Then the consonants in the order they appear:

```
t
p
r

```