freekir
11/30/2017 - 1:30 PM

test function js

function totalDis(time, speedOne, speedTwo){
  var distanceOne = speedOne * time;
  var distanceTwo = speedTwo * time;
  var distanceTotal = distanceOne + distanceTwo;
  return distanceTotal;
}
totalDis(3, 4, 5);