title: MVC / jQuery - Can use Razor variables in jQuery, but cannot assign to jQuery variables?
body: <p>This line</p>
  
  <pre><code>$('.current').val(page + ' of ' + @lastPage);
  </code></pre>
  
  <p>causes the last parentheses to get underlined with the red squigly that says "Syntax error", and nothing more.</p>
  
  <p>However, THIS line</p>
  
  <pre><code>setPage(@lastPage);
  </code></pre>
  
  <p>works perfectly fine.</p>
  
  <p>What the heck is up with that? It's causing the scripts in my view to stop working completely, and is rather frustrating.</p>
  
  <p>Could anybody shed some light on the subject, please?</p>