What is the result of the following code?
function compare(a, b, comparator) {
return comparator(a, b);
}
console.log(compare(5, 10, (x, y) => x > y));
What is the result of the following code?
function compare(a, b, comparator) {
return comparator(a, b);
}
console.log(compare(5, 10, (x, y) => x > y));