const secondFunc = function(word) { return word[0].toUpperCase() + word.substr(1); }; const firstFunc = function(arr, cb) { return 'New value: '+ arr.reduce(function(res,el) { return res + cb(el); }); };