HEAD
Given a non-empty array of integers, return the result of multiplying the values together in order.
[1, 2, 3, 4] => 1 * 2 * 3 * 4 = 24
const zeroFuel = (distanceToPump, mpg, fuelLeft) => {
return distanceToPump <= mpg *fuelLeft
};
Try it yourself - CodeWars
Given a non-empty array of integers, return the result of multiplying the values together in order.
[1, 2, 3, 4] => 1 * 2 * 3 * 4 = 24
const zeroFuel = (distanceToPump, mpg, fuelLeft) => {
return distanceToPump <= mpg *fuelLeft
};
Try it yourself - CodeWars