js-mentorship-razvan / javascript

Javascript study notes
GNU General Public License v3.0
22 stars 2 forks source link

Solve 'Debug the functions EASY' #305

Closed odv closed 5 years ago

odv commented 5 years ago

https://www.codewars.com/kata/debug-the-functions-easy/train/javascript

RazvanBugoi commented 5 years ago
function multi(arguments) {
  return arguments.reduce( (num, current) => num * current);
}
function add(arguments) {
  return arguments.reduce( (num, current) => num + current, 0);
}
function reverse(arguments) {
    return arguments.split("").reverse().join("");
}