Understanding Snippet of Javascript
<p>My professor has given us the following snippet of Javascript which we are supposed to analyze:</p>

<pre><code>function createMultiplyer(multiple) {
n = multiple;
return function(num) {
 return num * n;
 };
}

var fiveMultiplyer = createMultiplyer(15);
var x = fiveMultiplyer(10);
alert(x);
alert(fiveMultiplyer);
</code></pre>

<p>This piece of code outputs an alert containing the text "150" followed by another alert which reads <code>function(num) { return num * n; }</code>.  However, I cannot seem to understand why that is the case.</p>

<p>Can someone help me trace through the code and explain what is happening?</p>
