You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var qdata =q.query; //returns an object: { year: 2021, month: 'september' }
227
+
console.log(qdata.month); //returns 'september'
228
+
```
211
229
212
230
<divalign="right">
213
231
<b><a href="#">↥ back to top</a></b>
@@ -338,7 +356,12 @@ Node JS Platform does not follow Request/Response Multi-Threaded Stateless Model
338
356
339
357
## Q. ***What are the core modules of Node.js?***
340
358
341
-
*ToDo*
359
+
360
+
They are defined within the Node.js source and are located in the lib/ folder, and Node.js has several modules compiled into the binary.
361
+
362
+
Core modules are always preferentially loaded if their identifier is passed to ```require()```. For instance, ```require('http')``` will always return the built in HTTP module, even if there is a file by that name.
363
+
364
+
Core modules can also be identified using the ```node:``` prefix, in which case it bypasses the require cache. For instance, ```require('node:http')``` will always return the built in HTTP module, even if there is ```require.cache``` entry by that name.
0 commit comments