how to get the square root in js

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

Also in JavaScript: