title: How JS treat function parameters?
body: <p>I know that in js functions are objects and As far as i understand objects have properties and methodes. But I don't know how the JS engine handle function parameters?(asthey aren't accessible like properties).<br>
  In the code below:
  <div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function func(parameter1) {
    console.log(parameter1);
  };
  func();</code></pre>
  </div>
  </div>
  <br> I don't get it why the result should be "undefined". Does the js engine consider parameters as variables? if so what is their variable environment?<br>
  Another thing that is confusing me:
  Where the anonymous function below is created? where it's hold? and Can it be accessed later in the code?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function a(par1) {
    par1();
  }
  
  a(function() {console.log("Hello");)</code></pre>
  </div>
  </div>
  </p>
  
  <p>Sorry for the english and thanks for helping.</p>