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 138 views
1 answer 129 views
1 answer 147 views
2 answers 177 views
1 answer 139 views
1 answer 159 views
1 answer 185 views
185 views asked Aug 19, 2020 by avibootz
...