0
function a(fun) {

}
a(function(a, b, c) {
  return a + b + c;
});

How can i access fun arguments and their count inside function a?

kapil pandey
  • 1,853
  • 1
  • 13
  • 26
  • You can get the number of declared parameters. You cannot access any arguments, they only exist when you are calling the function - and you decide how and with which values to call it. – Bergi Jul 04 '19 at 18:09
  • Thanks a lot @Bergi. That is what I was looking for. – kapil pandey Jul 05 '19 at 03:18

0 Answers0