How to escape quotes in a string with Node.js

1 Answer

0 votes
const str = `\\node.js\\ "programming" 'version' it's 18.4.0`;

console.log(str);
   
   
 
       
/*
run:
    
\node.js\ "programming" 'version' it's 18.4.0
     
*/

 



answered Jun 30, 2022 by avibootz

Related questions

1 answer 209 views
1 answer 207 views
1 answer 226 views
2 answers 289 views
1 answer 203 views
1 answer 240 views
1 answer 260 views
260 views asked Aug 19, 2020 by avibootz
...