What is the different between a parameter and a local variable?
<p>Apologies for what must seem like a <em>very</em> stupid question.</p>

<p>I'm currently working through codecadamy, and this is throwing me off:</p>

<pre><code> var greeting = function(name) {
    name = "sausage";
    console.log(name); 
};

greeting(name);
</code></pre>

<p>I understand that I will get <code>sausage</code></p>

<p>Why don't I just write <code>var name = "sausage";</code>? What is the difference?</p>
