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

What's the other word speaking in circles; round-about speech
How many moles of water (H2O) would be produced if 10 moles of O2 gas reacted completely with excess H2 gas?2 H2(g) + O2(g) → 2 H2O(g)A. 5 B. 10 C. 20 D. 30
I figured out the 1st question but I do not understand the second one...please show me step by step! Thank you!
What's the other word speaking in circles; round-about speech
What's the other word generous in overlooking insult or injury by others; rising above pettiness
if Xx8=y is the rule,and the value of x is 4, what is the value of y
I figured out the 1st question but I do not understand the second one...please show me step by step! Thank you!
what do I do to figure out this problem:3x+8=26+x
What was the major purpose of the Truman Doctrine?
Choose the more precise measurement in the pair.  A .) 6.7 mi or  B.) 6 mi