<p>Write a function <code>createCounter</code>. It should accept an initial integer <code>init</code>. It should return an object with three functions.</p>
<p>The three functions are:</p>
<ul>
<li><code>increment()</code> increases the current value by 1 and then returns it.</li>
<li><code>decrement()</code> reduces the current value by 1 and then returns it.</li>
<li><code>reset()</code> sets the current value to <code>init</code> and then returns it.</li>