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 other areas beside egypt did the new kingdom pharoahs conquer
If you are writing a persuasive essay in favor of banning vending machines in schools, which is a counterargument you might anticipate?
which city was located nearest the nile river delta
what other areas beside egypt did the new kingdom pharoahs conquer
what other areas beside egypt did the new kingdom pharoahs conquer
which city was located nearest the nile river delta
what other areas beside egypt did the new kingdom pharoahs conquer
what other areas beside egypt did the new kingdom pharoahs conquer
Which two numbers have a difference of 5 and a product of 3.36???
If you are writing a persuasive essay in favor of banning vending machines in schools, which is a counterargument you might anticipate?