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 213 views
1 answer 204 views
1 answer 218 views
218 views asked Nov 21, 2022 by avibootz
1 answer 216 views
216 views asked Nov 21, 2022 by avibootz
1 answer 232 views
1 answer 204 views
1 answer 219 views
219 views asked Mar 27, 2022 by avibootz
...