Questions and CORRECT Answers
What is nodejs - CORRECT ANSWER - Javasxript runtime thats built on google chromes
v8 engine...allows to run js code outside the browser
Node js uses ____ architechture - CORRECT ANSWER - Modular
Types of module on nodejs - CORRECT ANSWER - Built in : these come default with
Node
User -defined: created by developers
Use _____ to import modules - CORRECT ANSWER - Require
Eg : const path = require('path')
Global object in nodejs - CORRECT ANSWER - Always avl in every module without
needing to import it
--dirname - CORRECT ANSWER - Current modules directory
__filename - CORRECT ANSWER - Full apth to module
Process - CORRECT ANSWER - Info abt nodejs process
Callback functions - CORRECT ANSWER - Functions passed as arguments to another
function
Role of callback functions - CORRECT ANSWER - Performs tasks like reading files
making http reuqests or waitung for user input blocking the execution program