loading
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
let hideVowels = function(string) {
    return string
      .replace(
        /[aeiou]/g, 
        '#')
}

let hideNonVowels = function(string) {
    return string
      .replace(
        /[^aeiou]/g, 
        '#')
}

let exampleSentence = "I entered the e-mails [email protected] and [email protected] into the database."

console.log(hideVowels(exampleSentence))
console.log(hideNonVowels(exampleSentence))
node v10.16.0