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

How many minutes are in 36 hours?
in what ways is climate controlled by the sun and the water cycle ?
A pound of seedless red grapes costs $2.75. Drew must spend less than $9.35 on a bunch of seedless red grapes.Inequality:Solution:Interpretation:
What is the numerator or denominator of 4/5
What is two thirds minus six thirds
When was World War I?
A child is standing across the street from his apartment . His mother is on their balcony . The angle of elevation between the child's eyes and his mothers eyes
Trying to translate word problems. Five times the sum of 3 and twice some number is 70. what is the number?
.is a pot holder a conductor or a insulator
Nadine can send or receive a text message for 15 cents or get an unlimited number for 5 dollars. Write and solve an inequality to find how many messages she can