How to replace double quotes with single quotes in TypeScript

1 Answer

0 votes
let str = 'javascript c++ "php typescript" node.js';

str = str.replaceAll('"', "'");

console.log(str);

  
  
  
  
/*
run:
  
"javascript c++ 'php typescript' node.js"
  
*/

 



answered Jun 30, 2022 by avibootz

Related questions

1 answer 131 views
1 answer 138 views
1 answer 144 views
1 answer 129 views
1 answer 123 views
1 answer 132 views
...