Ask Question
22 July, 07:35

How many parameters go into the function sum, and how many return values come out of the function sum? function sum (first, second, third) { var result = first + second + third; println (first); println (second); println (third); return result; }

+2
Answers (1)
  1. 22 July, 10:17
    0
    3 parameters are passed into the function.

    1 value will be returned from the function.

    Explanation:

    From the function definition "function sum (first, second, third) ", we can see that there are three value/parameters are passed in the function. Then variable "result" will be the sum all the three values. After that it will print the all three values in new line. Then the function will return one value which is the sum of all three that is value of "result". As there is only one value returned by the return statement in the function.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “How many parameters go into the function sum, and how many return values come out of the function sum? function sum (first, second, third) ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers