Answer:
var distance = prompt("How far did you run? in miles");
var time = prompt("How long did you run? in hours");
function calSpeed(miles, hours){
var speed = miles / hours;
console.log(speed,"m/h")
calSpeed(distance, time);
Step-by-step explanation:
The javascript uses the prompt function to get user inputs for the distance and time variables. The calSpeed function calculates and prints out the speed of the runner with the arguments, distance and time.