I'm having trouble understanding, for example, when creating a server in Node.js - where does http module come from if there is no node_modules folder in my project?
Example bellow:
const http = require('http');
const onRequest = (req, res) => {
res.writeHead(200, {"Content-Type": "text/plain"});
res.write('Hello World!');
res.end();
}
const server = http.createServer(onRequest).listen(8000);
Thank you in advance.
P.S.
I don't have any other file in my project folder than this one.