How to remove the vowels from a string in TypeScript

1 Answer

0 votes
let str = 'typescript c++ c php python';

str = str.replace(/[aeiou]/gi, '');

console.log(str); 

  
  
  
  
/*
run:
  
"typscrpt c++ c php pythn"
  
*/

 



answered May 12, 2022 by avibootz

Related questions

1 answer 219 views
1 answer 211 views
1 answer 225 views
225 views asked Nov 21, 2022 by avibootz
1 answer 223 views
223 views asked Nov 21, 2022 by avibootz
1 answer 235 views
1 answer 210 views
1 answer 226 views
226 views asked Mar 27, 2022 by avibootz
...