function danceRobot(  jumpHeight  ,   speed  ,   time  ) {

jumpHeight:

speed:

time:

}

INSTRUCTIONS

Functions in JavaScript are pieces of code that act as a rulebook for how to do something, in this case: DANCE! We can call the function and run that code, or rulebook, with just one line. Functions can also have parameters, which means that we can slightly tweak the way the code will be run. In this case, the parameters are:

  • How high Bit by Bot jumps ("jumpHeight")
  • How fast Bit by Bot dances ("speed")
  • How long Bit by Bot dances for ("time")

CONTROL

danceRobot(, , );





CALLING:

N/A