Ask Question
13 December, 07:05

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; }

+4
Answers (1)
  1. 13 December, 07:25
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers