Computer Science, asked by baileyjg1990, 7 hours ago

What would be the return value of this function?
function test(name, birth_year, current_year) { const age = current_year - birth_year; const response = name + " is " + age; return response; } test("john", 1943, 1965)

Answers

Answered by llGangsterBachchill
2

Answer :-

A return is a value that a function returns to the calling script or function when it completes its task. A return value can be any one of the four variable types: handle, integer, object, or string. The type of value your function returns depends largely on the task it performs.

Answered by raghabendrain
0

Answer:

23

Explanation:

Diving the current age and then adding with 1.

Similar questions