Open modolee opened 2 months ago
./js/index.js
https://github.com/donkim1212/nbc_ch2_tmdb/blob/e82e26f3e9cb9f89697237db750828d2ddcc3080/index.html#L9-L35
<script type="module" src="./js/index.js"></script>
onclick, style
title = title.toLowerCase();
피드백 감사합니다. 지적해주신 부분 수정해보도록 하겠습니다.
구현 사항 확인
필수
선택
피드백
배운 내용을 잘 활용
캐싱 처리
파일 분리
./js/index.js
와 같이 별도의 파일로 분리한 후 script만 호출하는 형태로 작성한다면 더 좋았을 것 같네요.https://github.com/donkim1212/nbc_ch2_tmdb/blob/e82e26f3e9cb9f89697237db750828d2ddcc3080/index.html#L9-L35
onclick, style
)은 포함하지 않고 js, css에서 처리하는 것이 좋습니다. 추후 해당 요소의 js, css 적인 부분은 수정하려고 할 때 js 파일과 css 파일을 우선적으로 확인할테니 그 곳에서 한꺼번에 관리하는 것이 유지보수 시 더 편리합니다. https://github.com/donkim1212/nbc_ch2_tmdb/blob/e82e26f3e9cb9f89697237db750828d2ddcc3080/js/card.js#L11-L26일관 된 네이밍
예외 처리
테스트를 위한 플래그 사용
README 작성
Git 활용
대소문자 구분없이 검색
title = title.toLowerCase();
의 위치가 올바르지 않아서 정상 동작하지 않고 있으니 확인해 보세요. https://github.com/donkim1212/nbc_ch2_tmdb/blob/e82e26f3e9cb9f89697237db750828d2ddcc3080/js/search-movie.js#L7-L16