Q:

.Nth root math JavaScript

I wanted to know if I have to rewrite Math.pow(a, b) to make nth root. Or is there a code for nth root.
Currently I am using input so users can create a price calculator for mods on Warframe. And I made a formula so it can give a fair price on mods better than guessing.
It follows this formula
Max rank price divided by start unranked price. It will be called ratio.
Max rank root scale.
Ex 10/---- 20 = percent increase.
Percent increase times current rank times start unranked price.
Again I wanted to know if there is Math root or not

A:

Math.pow can give you the nth root; just use a power of 1/n. For example: (at the javascript console)
> Math.pow(2, 1/2)
< 1.4142135623730951

This is very basic algebra.

