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

is "you and too" slant rhyme or exact rhyme?
How had aids affected the economies of Africa?
What does this device do
A company that makes boxes finds out that 3 out of the 20 boxes are damaged. What percent of the boxes are damaged?
How did the Second great awakening impact the roles of African Americans
A map has a scale of 4 inches : 25 inches. How far are two cities on a map if they are 120 miles apart?
14) through: (-3,5), slope = -1A) y=-x + 2 B) y = x + 2C) y = 2x +1 D ) y=-2x +1​
Question 1 Errors can be syntax errors or logic errors (the code works, but not as intended). Which of the following statements contains an error? String lotter
most elements in the periodic table are in what state of matter?
Describe what happens when a muscle contracts.