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