how to remove vowels in a string javascript code example Example: remove vowels from string javascript str = str.replace( /[aeiou]/ig, '' )