title: ASP.NET MVC - Work with JavaScript
body: <p>I have an ASP.NET MVC Website with a lot of JavaScript inside my views.</p>
  
  <p>I have a few questions:</p>
  
  <ol>
  <li><p>Is it possible to put JavaScript functions in an external .js file (using razor syntax in some functions to get model values)?</p></li>
  <li><p>How can I debug my application? For now I just put some alert() in the code but it is not a good solution.</p></li>
  <li><p>How can I log data? I use log4net for the C# part but is there a way to do it in JavaScript? At least into the "Output" section of Visual Studio.</p></li>
  </ol>