Codewar Day2
G33kNoob
Posted on August 2, 2020
i rest some day because i got busy with ied adha, now i try solve a litle problem
the question :
Trolls are attacking your comment section!
A common way to deal with this situation is to remove all of the vowels from the trolls' comments, neutralizing the threat.
Your task is to write a function that takes a string and return a new string with all vowels removed.
For example, the string "This website is for losers LOL!" would become "Ths wbst s fr lsrs LL!".
Note: for this kata y isn't considered a vowel._
my solving :
const disemvowel = data => {
let regex = /[aiueoAIUEO]/g;
return data.replace(regex, "");
};
the popular solving
disemvowel = str => str.replace(/[aeiou]/gi,'');
💖 💪 🙅 🚩
G33kNoob
Posted on August 2, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
privacy Caught in the Crunch My Journey from Snacks to 2 Million Exposed Users Privacy
November 30, 2024
devchallenge Submission for the DevCycle Feature Flag Challenge: Feature Flag Funhouse
November 30, 2024