title: Please explain this JavaScript logic
body: <pre><code>var isLogin = '';
  if ('true' == 'true') {
     isLogin = '&amp;is_login=true';
  }
  </code></pre>
  
  <p>Came across this piece of JavaScript on a website. Can anyone explain why the author chose to set the value of <code>isLogin</code> this way?? As far as i can understand <code>('true' == 'true')</code> will always return <code>true</code>, so why not just initialize with the desired value?</p>