javascript square root
snippet in javascript

square root in javascript

user7559


Math.sqrt(9);
 

javascript square root

user6303

var x = Math.sqrt(num);

sqrt javascript

user6233

let number = 16
Math.sqrt(number);
//output = 4

javascript detect square number

user5299

var isSquare = function (n) {
    return n > 0 && Math.sqrt(n) % 1 === 0;
};

root of any number javascript

user2838

let n = 64;
let root = 6;
Math.pow(n, 1/root);
// output 2;

root of any number javascript

user5088

let n = 64;
let root = 5;
Math.pow(n, 1/root);
// output 2;