[문서] C02 충돌 해결 및 번역 진행#1852
Conversation
| 정확히 말하자면, `typeof`는 함수가 아니라 연산자입니다. 여기서 괄호는 `typeof`의 일부가 아닙니다. 수학에서 식을 묶을 때 쓰는 괄호와 같은 종류의 괄호입니다. | ||
|
|
||
| Usually, such parentheses contain a mathematical expression, such as `(2 + 2)`, but here they contain only one argument `(x)`. Syntactically, they allow to avoid a space between the `typeof` operator and its argument, and some people like it. | ||
| 보통 이런 괄호 안에는 `(2 + 2)`처럼 수식이 들어가지만, 여기서는 `(x)`처럼 인수 하나만 들어갑니다. 문법적으로는 `typeof` 연산자와 인수 사이에 공백을 쓰지 않게 해주며, 이를 선호하는 사람들도 있습니다. |
There was a problem hiding this comment.
문법적으로는 typeof 연산자와 인수 사이에 공백을 쓰지 않게 해주며, 이를 선호하는 사람들도 있습니다.
이 부분 번역이 좀 이해가 잘 안되게 되어있는데요.
원문: Syntactically, they allow to avoid a space between thetypeof operator and its argument, and some people like it.
쉽게 풀이가 가능할까요?
| ======= | ||
| | `string` | The string is read "as is", whitespaces (includes spaces, tabs `\t`, newlines `\n` etc.) from both sides are ignored. An empty string becomes `0`. An error gives `NaN`. | | ||
| >>>>>>> upstream/master | ||
| | `string` | 전달받은 문자열을 "그대로" 읽되, 처음과 끝의 공백(스페이스, 탭 `\t`, 줄 바꿈 `\n` 등)을 무시합니다. 문자열이 비어있다면 `0`이 되고, 오류 발생 시 `NaN`이 됩니다. | |
There was a problem hiding this comment.
한국어에서 강조할때쓰는 쌍따옴표와 따옴표는 용례가 다릅니다. 번역가이드를 통해 두 따옴표의 차이를 확인 후 수정부탁드립니다.
|
|
||
| In school maths, we write that as a<sup>b</sup>. | ||
| >>>>>>> upstream/master | ||
| 학교 수학에선 이를 a<sup>b</sup>로 표기합니다. |
There was a problem hiding this comment.
학교 수학이라고 직역하기 보다는 '교육 과정'등으로 의역해보면 어떨까합니다. 위쪽부터 워낙 다 잘해주셔서 제안정도로 생각해주시면 좋겠습니다~
|
|
||
| ```js run | ||
| alert('1' + 2 + 2); // "122" and not "14" | ||
| alert('1' + 2 + 2); // "14"가 아니라 "122"가 출력됩니다. |
There was a problem hiding this comment.
한국어에서 따옴표 vs 쌍따옴표 용례 차이 확인
| ``` | ||
| Here, the first operand is a string, the compiler treats the other two operands as strings too. The `2` gets concatenated to `'1'`, so it's like `'1' + 2 = "12"` and `"12" + 2 = "122"`. | ||
| >>>>>>> upstream/master | ||
| 첫 번째 피연산자가 문자열이므로, 컴파일러는 나머지 두 피연산자도 문자열로 취급합니다. 2가 '1'에 병합되므로, '1' + 2 = "12"가 되고 "12" + 2 = "122"가 됩니다. |
There was a problem hiding this comment.
원문에 있는 백틱(`)이 누락되어있습니다.
| 1. Obviously, true. | ||
| 2. Dictionary comparison, hence false. `"a"` is smaller than `"p"`. | ||
| 3. Again, dictionary comparison, first char `"2"` is greater than the first char `"1"`. | ||
| 4. Values `null` and `undefined` equal each other only. | ||
| 5. Strict equality is strict. Different types from both sides lead to false. | ||
| 6. Similar to `(4)`, `null` only equals `undefined`. | ||
| 7. Strict equality of different types. |
There was a problem hiding this comment.
원문 변경사항이 한국어에 반영되어있지 않습니다.
- 원문에 있는 백틱 누락
- 4번의
each other only.번역 누락 - 6번에서 백틱 누락
- 7번 변경사항 반영안됨
|
백틱과 따옴표 관련하여 숙지가 부족했던 것 같습니다! 이번에 작성해 주신 리뷰 사항 반영한 뒤, 다시 한번 면밀히 살핀 후 재요청드리겠습니다. 늦은 시간임에도 확인해주셔서 감사합니다! |
요약
1-js/02-first-steps/04-variables/article.md1-js/02-first-steps/05-types/article.md1-js/02-first-steps/06-alert-prompt-confirm/article.md1-js/02-first-steps/07-type-conversions/article.md1-js/02-first-steps/08-operators/3-primitive-conversions-questions/solution.md1-js/02-first-steps/08-operators/4-fix-prompt/solution.md1-js/02-first-steps/08-operators/article.md1-js/02-first-steps/09-comparison/1-comparison-questions/solution.md1-js/02-first-steps/09-comparison/article.md연관 이슈
Pull Request 체크리스트
TODO