function disemvowel(str) { const vowel = ['a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U']; let result = ""; for (let i=0; i<str.length; i++) if (!vowel.includes (str[i])) { result += str[i] } return result; }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter