[오타수정] 2.8 기본 연산자와 수학 #1452#1497
Open
cottonpup wants to merge 2 commits intojavascript-tutorial:masterfrom
Open
[오타수정] 2.8 기본 연산자와 수학 #1452#1497cottonpup wants to merge 2 commits intojavascript-tutorial:masterfrom
cottonpup wants to merge 2 commits intojavascript-tutorial:masterfrom
Conversation
|
|
||
| 1. 피 연산자 중 하나가 문자열인 `"" + 1`에서 `1`은 문자형으로 변환됩니다. 따라서 공백과 문자열 1을 더한, `"" + 1 = "1"`과 같은 효과를 발휘하죠. 그다음 연산 `"1" + 0`에도 같은 규칙이 적용됩니다. | ||
| 2. 뺄셈 연산자 `-`는 기타 수학 연산자처럼 숫자형만을 인수로 받습니다. 빈 문자열 `""`는 숫자 `0`으로 변환되기 때문에 결과는 `-1`이 됩니다. | ||
| 2. 뺄셈 연산자 `-`는 기타 수학 연산자처럼 숫자형만을 인수로 받습니다. 빈 문자열 `""`은 숫자 `0`으로 변환되기 때문에 결과는 `-1`이 됩니다. |
Member
There was a problem hiding this comment.
""<--이 기호는 쌍따옴표라고 부르기 때문에 쌍따옴표는으로 하는게 맞을것 같은데요.
혹시 은으로 바꾸신 이유가 있을까요?
Contributor
Author
There was a problem hiding this comment.
쌍따옴표는이 더 정확한 것 같습니다. 커밋 수정하였습니다.
Member
|
리뷰 후 수정 내용도 커밋 하나에 합치기 부탁드릴게요.. :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request 체크리스트
TODO
Summary
[오타수정] 2.8 기본 연산자와 수학 #1452
띄어쓰기, 피동형 문장 등을 수정하였습니다.