-
Notifications
You must be signed in to change notification settings - Fork 846
논리 연산자 #20
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
논리 연산자 #20
Conversation
|
||
## && (AND) | ||
## && (그리고) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기서 AND 는 연산자이니까 해석을 안해도 되지않을까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수정완료
@@ -190,25 +187,25 @@ if (1 && 0) { // evaluated as true && false | |||
``` | |||
|
|||
|
|||
## AND finds the first falsy value | |||
## AND는 첫 번째 거짓(falsy) 값을 찾습니다. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
러닝 자바스크립트 책에선 falsy는 '거짓 같은 값', truthy는 '참 같은 값'으로 번역하고 있어서, 용어집에도 일단 등록해 놓았습니다.
false와 falsy를 구분해줘야하는데, 구분을 위해 '거짓 같은 값'으로 번역하길 권유드립니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수정완료
|
||
```js run | ||
alert( !!"non-empty string" ); // true | ||
alert( !!null ); // false | ||
``` | ||
|
||
That is, the first NOT converts the value to boolean and returns the inverse, and the second NOT inverses it again. In the end, we have a plain value-to-boolean conversion. | ||
즉, 첫 번째 NOT은 값을 부울로 변환하고 정반대 값을 반환하고, 두 번째 NOT은 이 값을 다시 반전합니다. 결국 단순한 논리 타입 변환을 가집니다. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
boolean을 번역해주세요.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
즉, 첫 번째 NOT 연산자는 값을 논리 타입으로 변환하면서 반대되는 값을 반환하고, 두 번째 NOT 연산자는 다시 반대되는 값을 반환합니다. 결국 단순한 논리 타입 변환을 가집니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
요렇게 하면 될까여?
이번 커밋도 알차네요 👍 |
Fix missing translation
논리 연산자