2006년 4월 2일 일요일

typeof 연산자

javascript의 typeof 연산자는 변수에 저장하고 있는 type이 무엇인지를 반환하는 함수입니다. 순서는 다음과 같습니다.
1. Evaluate UnaryExpression.
2. If Type(Result(1)) is not Reference, go to step 4.
3. If GetBase(Result(1)) is null, return "undefined".
4. Call GetValue(Result(1)).
5. Return a string determined by Type(Result(4)) according to the following table:

리턴되는 결과는 다음과 같습니다.



댓글 없음:

댓글 쓰기