Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
구현 방법
4-1. 테스트 케이스 명령어와 동일하다면 함수를 호출합니다. 이 때,
case "push":
제외하고 result 변수에 값을 더해줍니다.아이디어
.replace(/\r/g, "")
실행합니다.splite()
함수로 쪼갤 때 음수의 마이너스(-)를 살려주기 위해서 입니다.if
문 보다switch
문이 더 적합합니다.