+ 2
How do node.js could deal with files and servers
I tried to search it in the search bar. But I didn't found. I apologise if there were any post related to it. Well. I will jump to the question. So node.js is a java script library based on chromes v8 js engine. But how it could manage files and servers which cannot be done with js much . (IK we can do something with AJAX. But js is still not a server side language). Is it using another language? Can anyone solve this problem? Thanks!
9 Respuestas
+ 5
May be this might be helpful,
https://mediu m.freecodecamp.org/what-exactly-is-node-js-ae36e97449f5
Difference between nodejs and JavaScript,
https://www.quora.com/What-is-the-difference-between-JavaScript-and-Node-js?ch=3&share=9ea2dd7b&srid=zXwus
+ 4
Seniru Pasan actually i don't have any idea about this
+ 2
Mellifluous🛡️ according to the articles it said that node.js is a runtime environment. So node.js still equivalent with standard js or is it a completely different thing?
+ 1
Its still using js
But the program itself running in its own instance not inside a browser like normal js does.
+ 1
Taste do you have any article that will be helpful?
+ 1
Pretty much the same in coding general, but some feature in ES6 still in experimental phrase in node
+ 1
The fs module provides an API for interacting with the file system
Study the following links would make you understand the Node.js file and directory systems work.
https://nodejs.org/api/fs.html
https://nodejs.org/api/fs.html#fs_file_system
+ 1
Calviղ thanks for help, but I want to know how they work besides js.
+ 1
Seniru Pasan already clearly show on the reference document. Spend some time to read it over. Practice the example codes on node.js server then.