[프로그래머스/js] 숫자 비교하기

2023. 3. 24. 15:13Coding Test/프로그래머스

나의 풀이

function solution(num1, num2) {
    if(num1==num2) return 1;
    else return -1;
}