title: Why parameters in JavaScript functions doesn't need var as type?
body: <p>I know it seems silly question but I'm actually confused with following scenario which as follows...<br>
  I understood that for every variable we need to specify datatype as <b>var</b> or though it's not a good practice we can go without <b>var</b> as well. For instance<br>
  We can either use<br></p>
  
  <pre><code>var name = "kishore";
  </code></pre>
  
  <p>or simply<br></p>
  
  <pre><code>name = "kishore";
  </code></pre>
  
  <p>But, when it comes to variables that we are passing as parameters in functions, Why doesn't they accept var? If I'm not wrong, I think those are just like other variable which has to store some value that can be accessible in that function. If I specify var it gives error. I just want to know what's going on there..?</p>