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 202 views
1 answer 133 views
1 answer 183 views
1 answer 85 views
1 answer 99 views
...