title: How to include js files in the view. ASP.NET MVC 4
body: <p>I wonder why my js file work when I call it in the view:</p>
  
  <pre><code>@section Scripts {  
  &lt;script&gt;   
  
      function myFunction() {
          alert("Hello1");
      }       
  
  &lt;/script&gt;
  }
  </code></pre>
  
  <p>but does not work when I call it:</p>
  
  <pre><code>@section Scripts {
  
     &lt;script type="text/javascript" src="~/Views/Home/script.js"&gt;&lt;/script&gt;
     &lt;script&gt;   
           myFunction();
      &lt;/script&gt;
  }
  </code></pre>