title: How to replace single quotes instead of double quotes in array of Javascript?
body: <p>I have an array of string values with double quotes all i want is convert the array string value with single quotes.</p>
  
  <pre><code>Var arr=["abc123","cde345","ijk789"];
  
  var test=[]
  for(var i=0;i&lt;arr.length;i++){
   ans=arr[i].replace(/"/g,"'")
    test.push(ans)
  }
  </code></pre>
  
  <p>The test result supposed to be ['abc123','cde345','ijk789']</p>