title: Why are are these functions not returned?
body: <p>Currently I am reading eloquent javascript and am at the section about higher order functions and was wondering why in this example the writer doesn't use <code>return then()</code> Or <code>return body(i)</code></p>
  
  <pre><code>function unless(test, then) {
    if (!test) then();
  }
  function repeat(times, body) {
    for (var i = 0; i &lt; times; i++) body(i);
  }
  
  repeat(3, function(n) {
    unless(n % 2, function() {
      console.log(n, "is even");
    });
  });
  // → 0 is even
  // → 2 is even`
  </code></pre>