April 2019
Beginner
480 pages
14h 32m
English
In Node.js, global objects are accessible throughout any application. You can use these objects at any point in a Node.js application. These objects can contain information about the application or filesystem. The following global objects are used most often in Node.js applications:
console.log(__dirname); >> /Users/Jon/Desktop
console.log(__filename); >> /Users/Jon/Desktop/filename_example.js
Read now
Unlock full access