title: Convert string in array format to javascript array
body: <p>I have a string in this format: <code>"['A', 'B', 'C']"</code>. I want to convert it to an array <code>['A', 'B', 'C']</code>. I tried using <code>JSON.parse()</code> but it did not work. Any help would be appreciated.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>const strArray = "['A', 'B', 'C']";
  const parsedString = JSON.parse(strArray);
  console.log(parsedString);</code></pre>
  </div>
  </div>
  </p>