3 ms·
According to the expected output, you'd need something like: function say(x) { return function (y) { alert( capitalize(x) + " " + capitalize(y));
by noblethrasher 16y ago
According to the expected output, you'd need something like:
function say(x)
{
return function (y) { alert( capitalize(x) + " " + capitalize(y)); }
}
Where capitalize makes the first character uppercase.
- Xavi 16y agoOops, that's a type-o. The capitalize doesn't need to change. Thanks for the heads up.