square of a 1 2 3 in javascript code example Example: root of any number javascript let n = 64; let root = 6; Math.pow(n, 1/root); // output 2;