Best Way for Conditional Variable Assignment
<p>Just want to Check which is better way for conditional Variable Assignement</p>

<p>1st method</p>

<blockquote>
<pre><code>if (true) {
  var myVariable = 'True';
} else {
  var myVariable = 'False';
}
</code></pre>
</blockquote>

<p>2nd Method</p>

<blockquote>
<pre><code>var myVariable = 'False';
if (true) {
  myVariable = 'True';
}
</code></pre>
</blockquote>

<p>I actually prefer 2nd One without any specific technical reason. What do you guys think?</p>
