función add (a) { function fun (b) { a + = b; volver diversión } fun.toString = function () { return a; } volver divertido; } console.log (add ( 1) (2) (3) (4)); // 10
función add (a) { function fun (b) { a + = b; volver diversión } fun.toString = function () { return a; } volver divertido; } console.log (add ( 1) (2) (3) (4)); // 10