math cube javascript code example Example: exponent javascript Math.pow(base, exposant); // if (math.pow(4,3) //do (4*4*4) //output:64