Sobes.tech
Junior — Senior

Calling a function with arguments listed separated by commas

livecode

Task condition

The function get3(data) takes an array as an input parameter. You need to implement a way to call this function, passing individual array elements separated by commas.

function get3(data) {
  return data.reduce((acc, item) => {
    console.log(1);
  });
}

console.log(get3(arr));