코딩테스트

[프로그래머스 / javascript] 두 개 뽑아서 더하기 (set으로도 풀 수 있음)

_서리__ 2023. 1. 15. 20:43

처음엔 indexOf로 했는데 통하지 않았다. indexOf로 할거면 !answer.indexOf(plusNum) 이게 아니라

answer.indexOf(plusNum)===-1이렇게 해야함!