Skip to content

Commit 4eb6eee

Browse files
authored
fix: 오타 NaN → Infinity로 수정
Corrected the output description for a code example in the documentation.
1 parent 3a50924 commit 4eb6eee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/documentation/ko/get-started/TS for the New Programmer.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ TypeScript는 독특한 구문 때문에 JavaScript 코드를 오류로 보지
9696
console.log(4 / []);
9797
```
9898

99-
구문적으로 옳은(syntactically-legal) 위 코드는 JavaScript에서 `NaN`을 출력합니다.
99+
구문적으로 옳은(syntactically-legal) 위 코드는 JavaScript에서 `Infinity`을 출력합니다.
100100
그러나 TypeScript는 배열로 숫자를 나누는 연산이 옳지 않다고 판단하고 오류를 발생시킵니다:
101101

102102
```
@@ -184,4 +184,4 @@ TypeScript는 JavaScript와 구문과 런타임 특성을 공유하므로, JavaS
184184
* You can+should read existing JS resources
185185
* Just paste it in and see what happens
186186
* Consider turning off 'strict' -->
187-
187+

0 commit comments

Comments
 (0)