<script src="<?= $BASENAME ?>/lib/global/js/prettify/lang-js.js" type="text/javascript"></script>
<p>Below is one possible solution to this problem.</p>
<header>
<h3>Exercise 2: Count Down By One</h3>
<div class="workinglink"><a href="solution/minilab6-ex2.html">working example</a></div>
</header>
<pre class="prettyprint lang-js linenums"><?= escape(load(dirname(__FILE__) . "/solution/minilab6-ex2.js", 7)) ?></pre>
<header>
<h3>Exercise 3: Count Down Continuously</h3>
<div class="workinglink"><a href="solution/minilab6-ex3.html">working example</a></div>
</header>
<pre class="prettyprint lang-js linenums"><?= escape(load(dirname(__FILE__) . "/solution/minilab6-ex3.js", 7)) ?></pre>
<header>
<h3>Exercise 4: Stop at Zero</h3>
<div class="workinglink"><a href="solution/minilab6-ex4.html">working example</a></div>
</header>
<pre class="prettyprint lang-js linenums"><?= escape(load(dirname(__FILE__) . "/solution/minilab6-ex4.js", 7)) ?></pre>
<header>
<h3>Exercise 5: Inject Rects</h3>
<div class="workinglink"><a href="solution/minilab6-ex5.html">working example</a></div>
</header>
<pre class="prettyprint lang-js linenums"><?= escape(load(dirname(__FILE__) . "/solution/minilab6-ex5.js")) ?></pre>