title: Error Duplicate Const Declaration in Switch Case Statement
body: <p>I have the following code and I get the error 'Duplicate Declaration query_url'.</p>
  
  <pre><code>  switch(condition) {
      case 'complex':
        const query_url = `something`;
        break;
      default:
        const query_url = `something`;
        break;
    }
  </code></pre>
  
  <p>I understand that query_url is getting declared twice which isn't right. But i don't know how to resolve this. Can someone please help on what should be the correct way to make this work?</p>