How to add a space between the characters in a string with TypeScript

1 Answer

0 votes
let str = 'typescript';
 
str = str.split('').join(' ');
 
console.log(str);
 
   
   
  
   
/*
run:
   
"t y p e s c r i p t" 
   
*/

 



answered Apr 30, 2022 by avibootz
...