Skip to content

Ym step21#50

Merged
crongro merged 2 commits intocode-squad:ymink16from
ymink16:ymStep21
Apr 8, 2019
Merged

Ym step21#50
crongro merged 2 commits intocode-squad:ymink16from
ymink16:ymStep21

Conversation

@ymink16
Copy link
Copy Markdown

@ymink16 ymink16 commented Apr 8, 2019

YM & TUNA

다각형의 넓이 구하기 함수 구현

Copy link
Copy Markdown
Contributor

@crongro crongro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

잘하셨어요.
리뷰드린 내용 참고해서 다음스텝하기 전에 수정해두세요.

승인/머지합니다

}

let checkPramNum = function(...args) {
for (let val of args) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오! 잘 했어요.
rest parameter잘썼음.

for-of에 대해서 좀더 알아보세요.

}

let getSquareArea = function(width, height) {
checkIsNum(arguments);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

여기에서는 check함수 두 개보다는 한개가 나을 듯

참고 :퍼사드패턴!

@crongro crongro merged commit 81c2cf6 into code-squad:ymink16 Apr 8, 2019
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.

2 participants