Skip to content

[1주차] 이채현 미션 제출합니다. - #3

Open
chaehyunL wants to merge 6 commits into
cho-log:chaehyunLfrom
chaehyunL:main
Open

chaehyunL wants to merge 6 commits into
cho-log:chaehyunLfrom
chaehyunL:main

Conversation

@chaehyunL

@chaehyunL chaehyunL commented Sep 15, 2026

Copy link
Copy Markdown

안녕하세요 의천 리뷰어님. 5기 프론트로 들어온 이채현입니다.

4기 백엔드를 참여하게 되면서, 프론트 공부도 해보고 싶다는 생각에 프론트 스터디에 참여하게 되었습니다.

프론트 공부하면서 많은 것을 얻어가고 싶습니다 :) 잘 부탁드립니다!

프로젝트 구성

ㄴsrc
    ㄴmodel
        ㄴBaseBallGame.js
        ㄴComputerNumber.js
    ㄴview
        ㄴInputValidation.js
    ㄴindex.js

[BaseBallGame] 볼과 스트라이크를 계산함.

[ComputerNumber] 무작위 겹치지 않는 세자리 수를 반환

[InputValidation] input과정에서 3자리 서로다른 수를 반환하지 않으면 false 반환

[Index.js] html과 호환이 되게끔 model과 view를 합쳐 controller의 역할을 함.

질문사항

controller를 따로 만들자니, 기존 index.js에서 .querySelector를 가져오기가 불편해서
controller 대신 index.js를 사용했던 것 같은데,

mvc 패턴을 지키기 위해서 controller를 따로 만드는 것이 좋을까요..?

mvc를 지키기 위해서 model view controller를 지키려고 했으나, index.js에서 직접 가져오는 정보들이 있으니까, controller 보다는 index.js를 사용하게 되었는데

mvc 패턴을 지키기 위해서 controller를 어떤식으로 따로 만드는 것이 좋을까요?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant