ryry3719 ryry3719
  • 02-01-2021
  • Computers and Technology
contestada

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)

Respuesta :

kyhat kyhat
  • 02-01-2021

Answer:

function half(number) {

     let result = number/2;

     return result;

}

Explanation:

Answer Link

Otras preguntas

number 1 I need help with confused
11. Consider the elements neon, bromine, and phosphorus. Which has five electrons in its 4p sublevel?
i need a diagram for how a scrap heap magnet works
How do you solve x²-10x+9=0 by completing the square?
shayla says that one kilometer is equal to one million millimeters. is She correct? explain why?
area is 320 square feet width is 4/5 length
Who do you think snitched on Anne Frank and her family?
what two large alliances took shape before the beginning of world war 1
Which geographic factor was most significant in helping the soviet union withstand german attacks in world war 2
1.How and why did the universe begin?2.Whats the point of life? Why are we here?3.Are we alone in the universe?4.Are moral values relative or absolute?5.Should