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 210 views
1 answer 209 views
1 answer 229 views
2 answers 291 views
1 answer 205 views
1 answer 240 views
1 answer 261 views
261 views asked Aug 19, 2020 by avibootz
...