how to get the square root in js

JavaScript
let n = 64;
let root = 5;
Math.pow(n, 1/root);
// output 2;sqrt("random number, do not put quotes"); //square rootlet 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;
Source

Also in JavaScript: