javascript square root
var x = Math.sqrt(num);
javascript detect square number
var isSquare = function (n) {
return n > 0 && Math.sqrt(n) % 1 === 0;
};
square root javascript
console.log(Math.sqrt(4)); // 2
console.log(Math.sqrt(16)); // 4
console.log(Math.sqrt(64)); // 8
console.log(Math.sqrt(100)); // 10
root of any number javascript
let n = 64;
let root = 6;
Math.pow(n, 1/root);
// output 2;
root of any number javascript
let n = 64;
let root = 5;
Math.pow(n, 1/root);
// output 2;
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us