To serve static files such as images, CSS files, and JavaScript files, a special folder called ______ is commonly used in Express.js.
- public
- assets
- static
- files
To serve static files such as images, CSS files, and JavaScript files, a special folder called the public folder is commonly used in Express.js. This folder typically contains all your publicly accessible static assets.
Which of the following is a property of the Global Object in Node.js?
- console
- globalThis
- module
- require
In Node.js, the global object is a global context object that contains various properties and methods available throughout the application. globalThis is a reference to the global object, which allows cross-environment compatibility. console, module, and require are not properties of the global object but are commonly used in Node.js for various purposes.