풀이 코드

  1. 두 수의 나눗셈
const solution = (num1, num2) => Math.floor((num1 / num2) * 1000);
  1. 숫자 비교하기
const solution = (num1, num2) => (num1 === num2) ? 1 : -1;

느낀 점

if와 '?'를 사용한 조건 처리