Skip to content

step2-2 YM & TUNA#78

Merged
honux77 merged 4 commits intocode-squad:ymink16from
ymink16:step2-2
Apr 12, 2019
Merged

step2-2 YM & TUNA#78
honux77 merged 4 commits intocode-squad:ymink16from
ymink16:step2-2

Conversation

@ymink16
Copy link
Copy Markdown

@ymink16 ymink16 commented Apr 9, 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.

수고하셨어요.

리뷰남겨드린 것만 보완하면 좋겠습니다.

console.log(funcArr);
console.log(areaArr);

let result1 = "계산수행순서 : ";
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.

전역공간에 코드를 그대로 두지 않는 게 좋습니다.(이유는 차차 느껴보실 수 있을거에요)
여기 아래 부분도 함수안으로 이동~

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

제가 실수로 printExecutionSequence()함수를 사용하지 않고 이 내용들을 전역공간 밖에 두어서 이렇게 된거 같습니다. 수정했습니다~

cal.js Outdated
return Math.PI * r * r;
}

let getSquareArea = function(width, height) {
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.

arrow function도 있으니 참고하세요.

함수표현식에서 const가 좀더 나을 거 같은데, 왜 그런지 두 개의 차이를 알아보고, 고민해보세요.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

넵!! 수정했습니다

cal.js Outdated
@@ -0,0 +1,51 @@
let getCircleArea = function(r) {
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.

칼닷제이에스 파일의 코드는 좋네요~!

@honux77 honux77 changed the title step2-2 YM step2-2 YM & ㅅTUNA Apr 12, 2019
@honux77 honux77 changed the title step2-2 YM & ㅅTUNA step2-2 YM & TUNA Apr 12, 2019
@honux77
Copy link
Copy Markdown

honux77 commented Apr 12, 2019

👍 머지합니다.

@honux77 honux77 merged commit 6d120a8 into code-squad:ymink16 Apr 12, 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.

3 participants