How to convert array to string without commas in Node.js

1 Answer

0 votes
const arr = ['node.js', 'c', 'c++'];
 
const str = arr.join('');
 
console.log(str);

 
   
   
   
   
/*
run:
   
node.jscc++
   
*/

 



answered Jun 22, 2022 by avibootz

Related questions

3 answers 191 views
1 answer 126 views
1 answer 174 views
1 answer 78 views
1 answer 91 views
...