Ask Question
17 September, 02:46

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. 17 September, 03:04
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers