128k views
25 votes
Why do we use return statements? Choose all that apply

A.
Javascript requires functions to have return values.

B.
To return multiple data types simultaneously

C.
To allow a function to give different values depending on input.

D.
So that we no longer have to use console.log();

E.
To save the result of a function in a variable in other functions

User RQDQ
by
5.4k points

1 Answer

9 votes

Answer:

A.

Javascript requires functions to have return values.

User Calyth
by
5.2k points