3.1 Console/19 in node. js
3.1.1 Console.log method/19
3.1.2 Console.error Method/20
3.1.3 Console.dir Method/21
3.1.4 Console.time Method and Console.timeend method/22
3.1.5 Console.trace Method/22
3.1.6 Console.assert Method/23
3.2 Global scope and global functions in node. js/23
3.2.1 Global scope/23 in node. js
3.2.2 settimeout function and cleartimeout function/25
3.2.3 setinterval function and clearinterval function/25
3.2.4 Timer Object Unref method and ref method/27
3.2.5 Global functions and objects related to modules/28
3.3 __filename variable with __dirname variable/33
3.3.1 __filename Variable/33
3.3.2 __dirname Variable/34
3.4 Event handling mechanism and event loop mechanism/34
3.4.1 Eventemitter class/35
3.4.2 Various methods of the Eventemitter class/35
3.4.3 Gets the number of event handler functions for the specified event/41
3.4.4 events owned by the Eventemitter class itself/42
3.4.5 Event ring Mechanism/44
3.5 using the debugger in node. JS/45
3.5.1 using the debugger in a command-line window/45
3.5.2 observing the execution result of a variable value or an expression/48
3.5.3 Set and cancel breakpoints/49
3.5.4 Other Utility commands available in the debugger/50
3.5.5 using the Node-inspector Debug Tool/54
3.6 Summary/55
node. js authoritative Guide (3)-node. JS Basics