JS reverse string and remove vowels

I can do either reverse a string or remove vowels, but I have been stuck for a day trying to figure out how to combine them into one function. I know it has to be easy, but my brain is blocking my progress here.
Any assistance would be appreciated!

var strings = ["bongo drums", "guitar", "flute", "double bass", "xylophone", "piano"];

strings = strings.map(function (string) {
    return string.replace(/[aeiou]/g, '');
});

console.log(strings);



function reverse(s) {
    let i = s.length,
        o = '';
    while (i > 0) {
        o += s.substring(i - 1, i);
        i--;    
    }
    console.log(o);
    return o;
   
}

reverse('hello');

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make easier to read.

See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

Note: Backticks are not single quotes.

markdown_Forums

Answer to your question:
Inside the map callback function, just call the reverse function on the results of the string.replace(/[aeiou]/g, ‘’) before returning.

Thanks for the info on the back tick for posting code block
Also thank you for pointing me n the right direction with reverse function.

Can’t believe how fortunate i have been to find Free code camp