I am learning JavaScript, so if this question is nonsense correct me.
function greaterThan(n) {
return m => m > n;
}
let greaterThan10 = greaterThan(10);
console.log(greaterThan10(11));
// → true
In this function is there is any possible way to call inside function m=> m > n along with " greaterthan " function ?
Like greaterthan(10(11)); 🤔 where I provide m and n both variables ?