I literally don’t understand what the cubic equation is and what I am supposed to do
// Walk through the minefield
// This function returns the number multiplied by the times
function mult(number, times) {
var total = 0;
while (times > 0) {
total += number;
times--;
}
return total;
}
// This function returns the number to the exponent power.
function power(number, exponent) {
var total = 1;
// Complete the function.
while (exponent > 0) {
total += number;
exponent -= 1;
return total;
}
}