필리힐리 2021. 3. 23. 10:11

1.Number cannot be parsed (e.g. parseInt("blabla") or Number(undefined))

예시)

숫자를 파싱 (분석) 할 수 없는 경우

문자를 숫자로 형변환

 

2. Math operation where the result is not a real number (e.g. Math.sqrt(-1))

계산 결과가 숫자가 아닌 경우

예시)

음수의 제곱근

*음수의 제곱근은 허수1.Number cannot be parsed (e.g. parseInt("blabla") or Number(undefined))

 

예시)

 

숫자를 파싱 (분석) 할 수 없음

 

문자를 숫자로 형변환

 

 

 

2. Math operation where the result is not a real number (e.g. Math.sqrt(-1))

 

계산 결과가 숫자가 아닌 경우

 

예시)

 

음수의 제곱근

 

*음수의 제곱근은 허수

 

3. Operand of an argument is NaN (e.g. 7 ** NaN)

피연산자가 NaN인 경우

예시)

7 곱하기 NaN

 

4. Indeterminate form (e.g. 0 * Infinity, or undefined + undefined)

가늠할 수 없는 객체

예시)

0 곱하기 Infinity, 정의되지 않은 변수 두개를 곱할 경우

 

5. Any operation that involves a string and is not an addition operation (e.g. "foo" / 3)

문자열과 숫자를 기본 연산자를 이용해 계산할 경우 (더하기는 제외)

예시)

문자열 "foo" 나누기 3

*두개를 더하면 "foo3"