How to replace single quotes with double 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 210 views
1 answer 209 views
1 answer 230 views
1 answer 208 views
1 answer 218 views
1 answer 211 views
...