58.3k views
24 votes
The following statement calls a function named half, which returns a value that is half

that of the argument. (Assume the number variable references a float value.) Write
code for the function.
result = half(number)

User Cdn
by
5.3k points

1 Answer

2 votes

Answer:

function half(number) {

let result = number/2;

return result;

}

Step-by-step explanation:

User ArtanisAce
by
4.8k points