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 154 views
1 answer 164 views
1 answer 190 views
190 views asked Aug 19, 2020 by avibootz
1 answer 135 views
1 answer 137 views
1 answer 141 views
...