[백준/Node.js] 1330 번

const fs = require(‘fs’); let input = fs.readFileSync(‘/dev/stdin’).toString().split(” “); function compare(a, b) { if (a > b) { console.log(“>”); } else if (a < b) { console.log(“<“); } else { console.log(“==”); } } compare(Number(input(0)), Number(input(1))); 입력에서 얻은 것을 숫자로 변환하여 비교식에 넣어야 합니다. 문자열 형식의 비교 표현식이 제대로 작동하지 않습니다. (둘 다 1일 수 있음)