this and lexical scope
<p>At <a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Operators/this" rel="nofollow">this link</a>, Mozilla explains what 'this' references in the following way: </p>

<blockquote>
  <p>In general, the object bound to <code>this</code> in the current scope is
  determined by how the current function was called, it can't be set by
  assignment during execution, and it can be different each time the
  function is called.</p>
</blockquote>

<p>Under normal circumstances, I understand <code>this</code> and how its reference changes.</p>

<p>The book Pro JavaScript Design Patterns says the following about lexical scope</p>

<blockquote>
  <p>JavaScript is also lexically scoped, which means that functions run in
  the scope in which they are defined, not the scope they are executed
  in.</p>
</blockquote>

<p>So 'this' depends on how the current function was called, while lexical scope means functions are run in the scope in which they are defined. </p>

<p>My question is, can <code>this</code> ever be part of the lexical scope, and, if so, how do I understand the fact that this depends on how the current function was called, while lexical scope restricts functions to the scope in which they are defined.  </p>
