global 많은 속성들이 들어있다.
global.setTimeout => setTimeout, global는 전역객체 (노드 JS) 생략 가능.
전역객체 => 어디에서나 접근 가능한 객체.
window.setTimeout => setTimeout, window는 전역객체여서 생략 가능.
console.dir 객체 전용 로깅 (유용함 ! 알아두기)
console.log 모든지 로깅
console.trace() 경로 추적
'TIL > Node JS' 카테고리의 다른 글
__dirname, __filename, process (0) | 2019.10.20 |
---|---|
setInterval, setTimeout, setImmeiate, clear( ) (0) | 2019.10.20 |
module.exports, 비구조화 할당 (0) | 2019.10.20 |
비구조화 할당 (destructuring) (0) | 2019.10.19 |
const 바뀐점. (0) | 2019.10.19 |
comment