title: Can 'this' ever be null in Javascript
body: <p>I have a function along the lines of the following:</p>
  
  <pre><code>    doSomething: function () {
          var parent = null;
  
          if (this === null) {
              parent = 'some default value';
          } else {
              parent = this.SomeValue();
          }
      }
  </code></pre>
  
  <p><strong>Could parent ever be set to 'some default value'</strong> or is the check for null superfluous?</p>
  
  <p>Alternatively, what if I used the less restrictive:</p>
  
  <pre><code>    doSomething: function () {
          var parent = this ? this.SomeValue() : 'some default value';
      }
  </code></pre>
  
  <p><strong>Could parent ever be set to 'some default value' in this case?</strong></p>