study/clab-26-1/week5 #12
Replies: 3 comments
-
|
NaN은 IEEE 754(IEEE 부동소수점 연산 표준)의 관점에서 특수한 "숫자가 아님"을 나타내는 숫자 값이기 때문에 number타입에 속하게 됩니다. 또한 NaN == NaN은 false가 반환되는 특수한 경우를 지니기 때문에 Number.isNaN()을 사용해야 타입이 number를 가지는 NaN을 찾아낼 수 있습니다. |
Beta Was this translation helpful? Give feedback.
-
|
자바스크립트의 falsy는 거짓 같은 값을 뜻하고, booleand에서 false로 평가됩니다. falsy 값은 false, null, undefined, 0, NaN, ''(빈 문자열)의 6가지가 있습니다. 빈 배열[]이 falsy 값이 아닌 이유는, 빈 배열도 객체이기 때문입니다. 마찬가지로 ' '도 공백을 문자로 취급하기 때문에 아니고, {}도 빈 객체를 객체 취급하기 때문에 아닙니다. |
Beta Was this translation helpful? Give feedback.
-
|
ReferenceError 발생,let으로 선언한 변수는 호이스팅은 되지만, 선언문에 도달하기 전까지 TDZ에 놓여 접근할 수 없기 때문에 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
study/clab-26-1/week5
SEOJing's 프론트엔드 개발 블로그 플랫폼
https://seojing.tjwlsrb1021.workers.dev/blog/study/clab-26-1/week5
Beta Was this translation helpful? Give feedback.
All reactions