title: try-catch returns variable as undefined
body: <p>Assuming both tries fail, <strong>url</strong> returns as undefined and console.log doesn't execute in this case. Is there a problem with my stacking of try-catch clauses, or with the scope of the url variable?</p>
  
  <p>I am using try-catch because in my context url1,2, default may not be available.</p>
  
  <pre><code>getURL = function()
  {
     var url;
        try{
          url=data.url1;
        }
        catch(err1)
        {
          try{
            url=data.url2;
          }
          catch(err2)
          {
            console.log("Fetching default url");
            url=data.defaulturl;
          }
        }
        finally
        {
          //do something with url
        }
  }
  </code></pre>
  
  <p>I tried using an if-else-if structure, but it returns error if <strong>data.url 1/2/default</strong> is unavailable.</p>
  
  <pre><code>if('String' === typeof data.url1)
  {
  }
  else if(check for url 2/default etc.){...}
  </code></pre>