Project02 - 최우석 #5
Open
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.
Mini JS Assignment 과제 제출
제출자 정보
과제 완료 체크리스트
구현 내용
step1 : 대상 문자와 입력 문자 각각 빈 객체를 만들고 빈도를 측정한 뒤 둘을 비교하여 더 작은 값을 리턴하는
Math.min()을 활용하여 요구사항을 구현했습니다.step2 : 문자열 일치를 확인하는 불린 state을 선언하고 사용자 input의 onChange 함수 안에 넣어 비교할 수 있도로 하였습니다.
step3 : 대상 문자 input을 하나 만들고 그 input의 onChange를 관리하는 함수를 따로 만들어 state를 관리했습니다.
학습한 내용 (선택)
Math.min()을 사용해 글자 빈도 비교를 할 수 있다는 점을 배웠습니다!||를 통해 기본값을 설정할 수 있었습니다!질문사항 (선택)