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 245 views
1 answer 240 views
1 answer 260 views
260 views asked Aug 19, 2020 by avibootz
1 answer 209 views
1 answer 213 views
1 answer 210 views
...