-2

Please what would be the function of comma in this equation:

calculate_percent_rate(child_number, 5999) * (income > 6000 ? 6000 : income);

Michael
  • 34,340
  • 9
  • 58
  • 100
  • 1
    java != javascript – Michael May 20 '21 at 15:28
  • 2
    Delimiter between values in the parameter list. Extraordinarily basic stuff, consider taking an introductory tutorial – CertainPerformance May 20 '21 at 15:28
  • 1
    And that's not jQuery. To answer your question though, the comma there is separating the arguments provided to the `calculate_percent_rate()` function. I'd suggest finding a guide on functions to understand the syntax. – Rory McCrossan May 20 '21 at 15:28
  • It separates the arguments being passed to the `calculate_percent_rate` function. Why are people so cold? If the op is asking what a comma does, do you really think they're going to be able to dig through a mega thread and make sense of it? – PoorlyWrittenCode May 22 '21 at 04:18

0 Answers0