how to find the square root of a number javascript code example
Example: javascript detect square number
var isSquare = function (n) {
return n > 0 && Math.sqrt(n) % 1 === 0;
};
var isSquare = function (n) {
return n > 0 && Math.sqrt(n) % 1 === 0;
};