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 212 views
1 answer 210 views
1 answer 231 views
2 answers 294 views
1 answer 207 views
1 answer 242 views
1 answer 263 views
263 views asked Aug 19, 2020 by avibootz
...