How to remove the vowels from a string in Node.js

1 Answer

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

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

console.log(str); 

  
  
  
  
/*
run:
  
ndjs c++ c php pythn
  
*/

 



answered May 12, 2022 by avibootz
...