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 220 views
1 answer 217 views
1 answer 236 views
1 answer 215 views
1 answer 223 views
1 answer 216 views
...