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 329 views
1 answer 222 views
1 answer 268 views
1 answer 197 views
1 answer 181 views
...