On the Corialization principle of JS function

1. Why does this function run?

function _add(a) {
    return function(b) {
        return function(c) {
            return a + b + c;
        }
    }
}
_add(1)(2)(3);
Apr.07,2021

this is a little complicated. Write a simple one:

   

Menu