Day-18 Refactoring

So Eun Ahn·2021년 1월 25일
0

JavaScript

목록 보기
21/26

Refactoring

Refactoring : restructure code without changing how it works. To improve / To eliminate duplicates

helps you keep your code solid, dry, and easy to maintain

Duplicating code

if we have duplicate code and want to fix the code, than we have to change it in the multiple places

이번주는 너무 바쁘기도 하고 정신이 없어서
Code Challenge 풀어보는데 일주일을 소모한거 같다.
ㅋㅋ...let score initialize한걸 계속 또 initialize해서 각자 다른 변수로 잡아서...ㅠㅠ reset 버튼 누를때마다 다시 이전 score로 돌아가는 오류와...
reset버튼에 계속 check버튼을 불러올려한 이상한 실수를 하긴했는데
결과적으로 너무 삽질을 했다는 결론...

profile
오늘도 새로운 도전을 한다

0개의 댓글