Program to remove vowels from a String | Javascript program to remove vowels from a String ; Driver code
function remVowel ( str ) { let al = [ ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' ] ; let result = " " ; for ( let i = 0 ; i < str . length ; i ++ ) { if ( ! al . includes ( str [ i ] ) ) { result += str [ i ] ; } } return result ; } let str = " " + " " ; document . write ( remVowel ( str ) ) ;