title: Can someone explain the working of this code?
body: <p>So, I know this is related to higher order functions in JS, but I just don't understand how we're passing a value for <code>m</code> here.  Also, after we declare a variable <code>greaterThan10</code>, what does passing values to it do?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function greaterThan(n) {
    return m =&gt; m &gt; n;
  }
  let greaterThan10 = greaterThan(10);
  console.log(greaterThan10(11));
  // → true</code></pre>
  </div>
  </div>
  </p>