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 130 views
1 answer 119 views
1 answer 135 views
135 views asked Nov 21, 2022 by avibootz
1 answer 132 views
132 views asked Nov 21, 2022 by avibootz
1 answer 135 views
1 answer 117 views
1 answer 130 views
130 views asked Mar 27, 2022 by avibootz
...