JavaScript’s exponentiation function is Math.pow(base, exponent)
, so the 4th root of 8 is Math.pow(8, 1/4)
.
If you’re asking how to parse those strings of yours and evaluate, that’s a different thing altogether.
0
solved how to solve radical expression using javascript [closed]