Answers for "javascript detect square number"

2

javascript detect square number

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

Code answers related to "Javascript"

Browse Popular Code Answers by Language