Answers for "square root javascript"

8

javascript square root

var x = Math.sqrt(num);
Posted by: Guest on March-15-2020
2

root of any number javascript

let n = 64;
let root = 6;
Math.pow(n, 1/root);
//output 2;
Posted by: Guest on March-17-2020
2

javascript detect square number

var isSquare = function (n) {
    return n > 0 && Math.sqrt(n) % 1 === 0;
};
Posted by: Guest on June-06-2020
7

sqrt javascript

let number = 16
Math.sqrt(number);
//output = 4
Posted by: Guest on March-17-2020
3

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
Posted by: Guest on February-16-2021
0

root of any number javascript

let n = 64;
let root = 5;
Math.pow(n, 1/root);
// output 2;
Posted by: Guest on March-17-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language