프로그래머스 제곱수 판별하기 문제 링크
function solution(n) { return Math.sqrt(n) == Math.floor(Math.sqrt(n)) ? 1 : 2; }
%
Number.isInteger()