title: Assign False and '' to javascript variables from c#
body: <p>I pass model with default values (Id = 0, CityId = null, IsPublished = false) from controller to view:</p>
  
  <pre><code>public class MyModel
  {
      public int Id { get; set; }
      public int? CityId { get; set; }
      public bool IsPublished { get; set; }
  }
  </code></pre>
  
  <p>And in view I assign values from model to variables in javascript - cityId should be in javascript type of bool and isPublished should be in javascript null or type of int:</p>
  
  <pre><code>&lt;script&gt;    
      var cityId = @Model.CityId; // value: False
      var isPublished = @Model.IsPublished; // value: ''
  &lt;/script&gt;
  </code></pre>
  
  <p>But I have errors:</p>
  
  <ul>
  <li>For cityId: <code>Uncaught ReferenceError: False is not defined</code></li>
  <li>For isPublished: <code>Uncaught SyntaxError: Unexpected token ;</code></li>
  </ul>
  
  <p>What should I do ?</p>