원본 http://www.codecademy.com/courses/javascript-beginner-en-6LzGd/0/5?curriculum_id=506324b3a7dffd00020bf661
Tying it all together
함께 묶기
Why is the code organized like it is on lines 2-5?
왜 2-5줄처럼 코드를 구성할까?
The computer can understand the code without such spacing. But it makes editing a lot easier and is best practice.
컴퓨터는 공백없이 코드를 이해할 수 있다. 하지만 훨씬 쉽게 편집하게 하고 좋습니다.
Do I have to put a semi-colon at the end of each line of code in the reusable block? And at the end of the entire function?
재사용 가능한 블록 코드의 각 줄 끝에 세미콜론을 넣어야 합니까?그리고 전체 함수 끝에도 넣어야 합니까?
Yes. At the end of each line of code (within the { }) and after the entire function (after the { }), please put a semi-colon. The semi-colon acts like a period in a sentence. It helps the computer know where there are stopping points in the code.
그렇습니다. 코드의 마지막({ 내에서) 그리고 전체 함 수 끝에 ({} 다음에) 세미콜론을 넣어주세요. 세미콜론은 문장의 마침과 같이 역할 합니다. 컴퓨터가 코드의 마침점이 어디인지 알 수 있게 도와줍니다.
Instructions
지침문
A big part of programming is debugging. That just means figuring out what the heck went wrong with your code. Why didn't it run?
프로그래밍의 하나의 큰 부분은 디버기입니다. 그건 당신의 코드에서 무엇이 잘못되었는지 알려주는 것을 말합니다. 왜 그게 실행되지 않을까요?
01. Look at line 9. It has many syntax errors. See how lack of spacing makes debugging hard?
01. 9번 줄을 보세요.구문 오류가 많이 있죠. 간격의 적음이 디버깅을 어렵네 만드는 것이 보이나요?
02. Fix the function on line 9. Make sure the syntax is right. Make sure it looks nice.
02. 9번줄을 수정하세요. 구문에 맞는지 확인하세요. 보기 좋게 만드세요.
03. Call the greeting function once it is fixed! Don't forget to pass in a specific name.
03. 인사 함수를 부르는 것이 수정되었습니다. 특정 이름을 전달하는 것을 잊지 마세요.
Tying it all together
함께 묶기
Why is the code organized like it is on lines 2-5?
왜 2-5줄처럼 코드를 구성할까?
The computer can understand the code without such spacing. But it makes editing a lot easier and is best practice.
컴퓨터는 공백없이 코드를 이해할 수 있다. 하지만 훨씬 쉽게 편집하게 하고 좋습니다.
Do I have to put a semi-colon at the end of each line of code in the reusable block? And at the end of the entire function?
재사용 가능한 블록 코드의 각 줄 끝에 세미콜론을 넣어야 합니까?그리고 전체 함수 끝에도 넣어야 합니까?
Yes. At the end of each line of code (within the { }) and after the entire function (after the { }), please put a semi-colon. The semi-colon acts like a period in a sentence. It helps the computer know where there are stopping points in the code.
그렇습니다. 코드의 마지막({ 내에서) 그리고 전체 함 수 끝에 ({} 다음에) 세미콜론을 넣어주세요. 세미콜론은 문장의 마침과 같이 역할 합니다. 컴퓨터가 코드의 마침점이 어디인지 알 수 있게 도와줍니다.
Instructions
지침문
A big part of programming is debugging. That just means figuring out what the heck went wrong with your code. Why didn't it run?
프로그래밍의 하나의 큰 부분은 디버기입니다. 그건 당신의 코드에서 무엇이 잘못되었는지 알려주는 것을 말합니다. 왜 그게 실행되지 않을까요?
01. Look at line 9. It has many syntax errors. See how lack of spacing makes debugging hard?
01. 9번 줄을 보세요.구문 오류가 많이 있죠. 간격의 적음이 디버깅을 어렵네 만드는 것이 보이나요?
02. Fix the function on line 9. Make sure the syntax is right. Make sure it looks nice.
02. 9번줄을 수정하세요. 구문에 맞는지 확인하세요. 보기 좋게 만드세요.
03. Call the greeting function once it is fixed! Don't forget to pass in a specific name.
03. 인사 함수를 부르는 것이 수정되었습니다. 특정 이름을 전달하는 것을 잊지 마세요.
'Codecademy > Javascript' 카테고리의 다른 글
[Codecademy]Javascript_Return keyword 7/13 번역 (0) | 2014.08.11 |
---|---|
[Codecademy]Javascript_Don't Repeat Yourself (D.R.Y) 6/13 번역 (0) | 2014.08.11 |
[codecademy] JavaScript 목차 (0) | 2014.08.10 |