Answers for "js square root"

8

javascript square root

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

python get square root

import math

toSquare = 300
squared = math.sqrt(toSquare)
Posted by: Guest on February-11-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
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
7

sqrt javascript

let number = 16
Math.sqrt(number);
//output = 4
Posted by: Guest on March-17-2020
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

Python Answers by Framework

Browse Popular Code Answers by Language