N-й корень числа

const nthRoot = (x, n) => Math.pow(x, 1 / n);
nthRoot(32, 5); // 2
Числа JavaScript