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
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
0
Answer:
23
Explanation:
Diving the current age and then adding with 1.
Similar questions
Math,
4 hours ago
Social Sciences,
4 hours ago
Political Science,
7 hours ago
Hindi,
7 hours ago
Math,
8 months ago