Question d’entretien chez Honestbee

How to implement a function that dose this: add(a)(b) = a + b

Réponses aux questions d'entretien

Utilisateur anonyme

10 juin 2018

function add(a) { return b => a + b }

Utilisateur anonyme

29 juil. 2018

function add(a){ a=a||0; return function(b){ b = b || 0; return a + b; } }