Skip to content

Commit 1ae5166

Browse files
Merge remote-tracking branch 'upstream/master'
# Conflicts: # 1-js/02-first-steps/07-type-conversions/article.md # 1-js/02-first-steps/11-logical-operators/article.md # 1-js/04-object-basics/01-object/article.md # 1-js/05-data-types/04-array/article.md # 2-ui/2-events/05-dispatch-events/article.md
2 parents 306c94a + 405032e commit 1ae5166

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

1-js/02-first-steps/07-type-conversions/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
이 외에, 전달받은 값을 의도를 갖고 원하는 타입으로 변환(명시적 변환)해 주는 경우도 형 변환이라고 할 수 있습니다.
88

99
```smart header="객체의 형변환은 나중에 다룹니다."
10-
이 챕터에선 객체에 대해선 다루지 않겠습니다. 객체는 원시형에 대해 학습한 후 다룰 예정입니다.
10+
이 챕터에선 객체는 다루지 않겠습니다. 여기선 원시형의 형변환에 대해서만 다룰 예정입니다.
1111
1212
객체의 형 변환이 어떻게 이뤄지는지 <info:object-toprimitive>에 대해선 객체에 대한 학습이 끝난 후 알아보겠습니다.
1313
```

1-js/02-first-steps/11-logical-operators/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ alert( undefined || null || 0 ); // 0 (모두 falsy이므로, 마지막 값을
121121

122122
OR 연산자 `||`가 제공하는 또 다른 기능은 '단락 평가(short circuit evaluation)'입니다.
123123

124-
위에서 설명해 드린 바와 같이 OR`||`은 왼쪽부터 시작해서 오른쪽으로 평가를 진행하는데, truthy를 만나면 나머지 값들은 건드리지 않은 채, 평가를 멈춥니다. 이런 프로세스를 '단락 평가(short circuit evaluation)'라고 합니다.
124+
위에서 설명해 드린 바와 같이 OR`||`은 왼쪽부터 시작해서 오른쪽으로 평가를 진행하는데, truthy를 만나면 나머지 값들은 건드리지 않은 채 평가를 멈춥니다. 이런 프로세스를 '단락 평가'라고 합니다.
125125

126126
단락 평가의 동작 방식은 두 번째 피연산자가 변수 할당과 같은 부수적인 효과(side effect)를 가지는 표현식 일 때 명확히 볼 수 있습니다.
127127

1-js/04-object-basics/01-object/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ alert( *!*key*/!* in user ); // true, 변수 key에 저장된 값("age")을 사
360360
361361
그런데 이쯤 되면 "`undefined`랑 비교해도 충분한데 왜 `in` 연산자가 있는 거지?"라는 의문이 들 수 있습니다.
362362
363-
대부분의 경우는 일치 연산자를 사용해서 프로퍼티 존재 여부를 알아내는 방법(`"=== undefined"`) 꽤 잘 동작합니다. 그런데 가끔은 이 방법이 실패할 때도, 이럴 때 `in`을 사용하면 프로퍼티 존재 여부를 제대로 판별할 수 있습니다.
363+
대부분의 경우, 일치 연산자를 사용해서 프로퍼티 존재 여부를 알아내는 방법(`"=== undefined"`) 꽤 잘 동작합니다. 그런데 가끔은 이 방법이 실패할 때도 있습니다. 이럴 때 `in`을 사용하면 프로퍼티 존재 여부를 제대로 판별할 수 있습니다.
364364
365365
프로퍼티는 존재하는데, 값에 `undefined`를 할당한 예시를 살펴봅시다.
366366

1-js/04-object-basics/07-optional-chaining/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
[recent browser="new"]
55

6-
The optional chaining `?.` is an error-prone way to access nested object properties, even if an intermediate property doesn't exist.
6+
The optional chaining `?.` is an error-proof way to access nested object properties, even if an intermediate property doesn't exist.
77

88
## The problem
99

@@ -40,7 +40,7 @@ AND'ing the whole path to the property ensures that all components exist, but is
4040

4141
The optional chaining `?.` stops the evaluation and returns `undefined` if the part before `?.` is `undefined` or `null`.
4242

43-
Further in this article, for brewity, we'll be saying that something "exists" if it's not `null` and not `undefined`.
43+
Further in this article, for brevity, we'll be saying that something "exists" if it's not `null` and not `undefined`.
4444

4545

4646
Here's the safe way to access `user.address.street`:

1-js/06-advanced-functions/02-rest-parameters-spread/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,11 +225,11 @@ alert( Array.from(str) ); // H,e,l,l,o
225225
이런 이유때문에 무언가를 배열로 바꿀 때는 전개 문법보다 `Array.from`이 보편적으로 사용됩니다.
226226
227227
228-
## Get a new copy of an object/array
228+
## Get a new copy of an array/object
229229
230230
Remember when we talked about `Object.assign()` [in the past](https://javascript.info/object#cloning-and-merging-object-assign)?
231231
232-
It is possible to do the same thing with the spread operator!
232+
It is possible to do the same thing with the spread syntax.
233233
234234
```js run
235235
let arr = [1, 2, 3];

0 commit comments

Comments
 (0)