4 ms·
No, node.js is not a web server that serves files and folders. It doesn't even have to be a web server. It's simply a collection of libraries written specifical
by cmelbye 16y ago
No, node.js is not a web server that serves files and folders. It doesn't even have to be a web server. It's simply a collection of libraries written specifically to be asyncronous. It's kind of like Ruby and Python, but with asynchronous libraries and obviously using JavaScript. Asyncronous means non-blocking, so node.js makes use of things like callbacks to prevent your code from blocking. The Wikipedia article would be a good resource for further research.
(This stuff can get pretty complicated and I don't understand everything fully. Please point out things I got wrong!)
- aaronblohowiak 16y agoJust to clarify: it is a set of IO libraries, for socket, http, and file io. Other people have built things on top of node like db adapters and tempting languages, but at it's core node is focused on io.