반응형
var person ={name:"ttt", age:321};
console.log(person);
console.dir(person);
console.log(person.name);
console.dir(person.name);
console.log(person.age);
console.dir(person.age);
console.table(person)
dir()은 객체의 속성을 확인할 때 사용한다는데 차이점이 왜 안보이지;
What's the difference between console.dir and console.log?
In Chrome the console object defines two methods that seem to do the same thing: console.log(...) console.dir(...) I read somewhere online that dir takes a copy of the object before logging it, w...
stackoverflow.com
console.dir() vs console.log() | Treehouse Community
Participate in discussions with other Treehouse members and learn.
teamtreehouse.com
반응형
'IT > web' 카테고리의 다른 글
Node.js] MongoDB 연결, 사용자 추가, 데이터일치여부 확인 (0) | 2020.01.28 |
---|---|
Node.js] try, catch, throw (0) | 2020.01.26 |
Node.js] 파일 업로드, multer 미들웨어 (0) | 2020.01.25 |
Node.js] 쿠키 설정, 세션 설정 (0) | 2020.01.24 |
Node.js] body-Parser urlencoded({extended : ~}) (0) | 2020.01.23 |
댓글