How to print the use of different characters (letters) in a string in Node.js

1 Answer

0 votes
const str = "nodejs programming language";

console.log(([...new Set(str)]).join(''))



/*
run:
   
nodejs prgamilu
   
*/

 



answered Jan 25, 2024 by avibootz
...