Can I save arguments in a variable to move to a function later? [duplicate]

0

Hello,

I was wondering if it was possible to save arguments in a variable to call a function with them later. Try to demonstrate an example:

let numeros = (1, 3);
function adicionar(a, b) {
   return a + b;
}
adicionar(numeros);

I wanted to know if it was possible in a similar way where I just passed the variable and the function knew the arguments, assuming I can not change the function to accept array or other type to be able to add the numbers inside. >     

asked by anonymous 30.08.2018 / 13:01

0 answers