How to escape quotes in a string with TypeScript

1 Answer

0 votes
const str = `\\typescript\\ "programming" 'version' it's 4.7.4`;

console.log(str);   
   
 

       
/*
run:
    
"\typescript\ "programming" 'version' it's 4.7.4" 
     
*/

 



answered Jun 30, 2022 by avibootz

Related questions

1 answer 147 views
1 answer 159 views
1 answer 185 views
185 views asked Aug 19, 2020 by avibootz
1 answer 127 views
1 answer 131 views
1 answer 133 views
...