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

Hello people ~factorise : 5x²+16x+3​
3. Which part of the computer is used for typing? a. Mouse b. Keyboard
New cells have a _______ mix than parent cell​
Find center and radius of this circle: [tex](x-9)^2+(y+4)^2=25[/tex]
Here is a rule for generating a sequence; 3n+10 What is the 150th term of the sequence generate by this rule?​
How many grams of carbon dioxide are produced from 6.95 moles of oxygen in the following reaction? 2CH4 + 4O2 → 2CO2 + 4H2O
PLEASE HELP (Book: The Best We Could Do) How did certain features of geographic location affect people’s experience of war? Cite specific examples from the book
What is the molarity of a solution that is prepared by adding 3 moles of CaSO4 in 1.5 L of water?
Riddle: How many words are in a Dictionary?
In what ways are the Witches' prophecies revealed to be true in Act V?