JavaScript: Calculate the nth root of a number

Can you use something like this?

Math.pow(n, 1/root);

eg.

Math.pow(25, 1/2) == 5

Leave a Comment