Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[202302387 송영주] 1주차 미션을 제출합니다. #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yeongju03
Copy link

No description provided.

Copy link
Member

@jungbug jungbug left a comment

Choose a reason for hiding this comment

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

영주님!

1주차 과제 하시느라 고생 많으셨어요!

기본적으로 var 말고 let이나 const 사용하시는걸 추천해요!
과제에서 각도기에 대해 모르시는건 답변 달아놨어요!

과제에 대해서 모르시거나 궁금하신게 있으시면 연락주세요!

Comment on lines +2 to +20
function solution(angle) {
var answer = 0;
if (0<angle && angle<90) {
answer = 1;
}
else if (angle=90) {
answer = 2;
}
else if (90<angle && angle<180) {
answer = 3;
}
else if (angle=180) {
answer = 4;
}
else {
console.log ("잘못 입력")
}
return answer;
}
Copy link
Member

Choose a reason for hiding this comment

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

여기 부분에서

7번쨰 줄이랑 13번째 줄을 보면

    else if (angle==90) {
        answer = 2;
    }
    else if (90<angle && angle<180) {
        answer = 3;
    }
    else if (angle==180) {
        answer = 4;
    }

이런식으로 =을 ==으로 바꿔주셔야 되요!

=으로 사용하면 변수안에 할당하기 때문에 오류가 발생한거에요!

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