From 4eb6eee8d7840dbdec7e583a7fb1f73e30faad1d Mon Sep 17 00:00:00 2001 From: Minseon Kim Date: Sun, 7 Sep 2025 19:40:15 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=98=A4=ED=83=80=20NaN=20=E2=86=92=20I?= =?UTF-8?q?nfinity=EB=A1=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Corrected the output description for a code example in the documentation. --- .../documentation/ko/get-started/TS for the New Programmer.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/documentation/ko/get-started/TS for the New Programmer.md b/docs/documentation/ko/get-started/TS for the New Programmer.md index 11d89dda..c2043841 100644 --- a/docs/documentation/ko/get-started/TS for the New Programmer.md +++ b/docs/documentation/ko/get-started/TS for the New Programmer.md @@ -96,7 +96,7 @@ TypeScript는 독특한 구문 때문에 JavaScript 코드를 오류로 보지 console.log(4 / []); ``` -구문적으로 옳은(syntactically-legal) 위 코드는 JavaScript에서 `NaN`을 출력합니다. +구문적으로 옳은(syntactically-legal) 위 코드는 JavaScript에서 `Infinity`을 출력합니다. 그러나 TypeScript는 배열로 숫자를 나누는 연산이 옳지 않다고 판단하고 오류를 발생시킵니다: ``` @@ -184,4 +184,4 @@ TypeScript는 JavaScript와 구문과 런타임 특성을 공유하므로, JavaS * You can+should read existing JS resources * Just paste it in and see what happens * Consider turning off 'strict' --> - \ No newline at end of file +