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 127 views
1 answer 123 views
1 answer 137 views
2 answers 167 views
1 answer 131 views
1 answer 145 views
1 answer 176 views
176 views asked Aug 19, 2020 by avibootz
...