function letsroot(number, rootingFactor) {
return Math.pow(number, 1 / rootingFactor)
}
console.log(letsroot(4, 2)) //output 2
//first parameter the number u want to root
//second parameter the number u want to root by
let n = 64;
let root = 6;
Math.pow(n, 1/root);
//output 2;
let n = 64;
let root = 6;
Math.pow(n, 1/root);
// output 2;
let n = 64;
let root = 5;
Math.pow(n, 1/root);
// output 2;