const solution = (num1, num2) => Math.floor((num1 / num2) * 1000);
const solution = (num1, num2) => (num1 === num2) ? 1 : -1;
if와 '?'를 사용한 조건 처리