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 251 views
1 answer 246 views
1 answer 267 views
267 views asked Aug 19, 2020 by avibootz
1 answer 219 views
1 answer 223 views
1 answer 216 views
...