Answers for "javascript perfect square"

2

javascript perfect square

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