solve functional javascript 18: call