an class="number integer">3000</span>);
</code></pre>

<p>Lets say we now have some middleware that will require a setup step, this can be done by returning a closure:</p>

<pre><code class="js"><span class="keyword">function</span> <span class="variable">respond</span>(<span class="variable">msg</span>) {
    <span class="variable">msg</span> = <span class="variable">msg</span> || <span class="string">'hello world'</span>;
    <span class="keyword">return</span> <span class="keyword">function</span>(<span 