24 questions for “Core Node.js Modules”

Found in 1 field. Select a question to see its full answer.

Information Technology

24 questions in 1 technology

#QuestionTechnologyTopicLevel
1What is the difference between require() (CommonJS) and import (ES Modules) when loading Node.js's own core modules? Node.js › Core Node.js ModulesNode.jsCore Node.js ModulesBeginner
2What does the node:events module's EventEmitter class provide, and what naming convention do most Node.js core APIs follow when using it? Node.js › Core Node.js ModulesNode.jsCore Node.js ModulesBeginner
3What is the node: prefix for core module imports, and why was it introduced? Node.js › Core Node.js ModulesNode.jsCore Node.js ModulesBeginner
4What does the node:os module provide, and what are some commonly used functions from it? Node.js › Core Node.js ModulesNode.jsCore Node.js ModulesBeginner
5What does the URL/URLSearchParams API provide, and why is it generally preferred over the older querystring module today? Node.js › Core Node.js ModulesNode.jsCore Node.js ModulesBeginner
6What does the node:path module provide, and why should you always use it instead of manually concatenating file path strings? Node.js › Core Node.js ModulesNode.jsCore Node.js ModulesIntermediate
7What does the node:zlib module provide, and how would you use it to compress an HTTP response? Node.js › Core Node.js ModulesNode.jsCore Node.js ModulesIntermediate
8What does the node:readline module provide, and what is a common use case for it? Node.js › Core Node.js ModulesNode.jsCore Node.js ModulesIntermediate
9What is the util module's inspect() function used for, and how does it relate to how console.log() displays objects? Node.js › Core Node.js ModulesNode.jsCore Node.js ModulesBeginner
10What does the node:crypto module provide, and what's the difference between hashing and encryption? Node.js › Core Node.js ModulesNode.jsCore Node.js ModulesIntermediate