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 135 views
1 answer 140 views
1 answer 151 views
1 answer 133 views
1 answer 127 views
1 answer 138 views
...