Answers for "square root in javascript"

8

javascript square root

var x = Math.sqrt(num);
Posted by: Guest on March-15-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
6

square root python

x = 9
y = x ** 0.5
Posted by: Guest on March-08-2020

Python Answers by Framework

Browse Popular Code Answers by Language