javascript nth root

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

Also in JavaScript: