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

Respuesta :

Answer:

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.

The number of parameters that go into the function sum and the number of return values are respectively; 3 parameters go in, 1 return value comes out.

What are parameters in programming?

In computer programming, a parameter is a special kind of variable that is used in a function to show one of the pieces of data provided as input to the function.

Now, in this question we see that the function sum input consists of 3 parameters which are first, second, third. That is three distinct parameters. However, for the return values we see that it is a combination of the 3 distinct input values to give us one return result.

Thus, we conclude that 3 parameters go in, 1 return value comes out.

Read more about Programming parameters at; https://brainly.com/question/16397886

ACCESS MORE