title: Javascript, Get city name using geolocation
body: <p><a href="https://stackoverflow.com/a/6798005/2068148">https://stackoverflow.com/a/6798005/2068148</a></p>
  
  <p>The answer in the above link is answered by Michal.</p>
  
  <p>After getting the <strong>results</strong> from <strong>geocoder.geocode</strong> I didn't understand why he checked <strong><em>if(results[1])</em></strong>, he could have checked <strong><em>if(results)</em></strong>...</p>
  
  <p>Please help me in understanding this.</p>