JavaScript NTH Root

var root = 3;
var number = 27;
var answer = Math.pow(number, 1 / root); // 3
TC5550