Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var array = []; // 배열 선언
- typeof array // "object"
- var obj = {}; // Object 선언
- typeof obj; // "object"
- // Object || Array 구분 방법
- array.constructor == Array // true
- array.constructor == Object // false
- obj.constructor == Array // false
- obj.constructor == Object // true
Add Comment
Please, Sign In to add comment