+ 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!

14th Dec 2018, 10:40 AM
Seniru
Seniru - avatar
9 odpowiedzi
+ 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
14th Dec 2018, 11:12 AM
UwU Discover Me
+ 4
Seniru Pasan actually i don't have any idea about this
14th Dec 2018, 12:06 PM
UwU Discover Me
+ 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?
14th Dec 2018, 11:20 AM
Seniru
Seniru - avatar
+ 1
Its still using js But the program itself running in its own instance not inside a browser like normal js does.
14th Dec 2018, 11:10 AM
Taste
Taste - avatar
+ 1
Taste do you have any article that will be helpful?
14th Dec 2018, 11:12 AM
Seniru
Seniru - avatar
+ 1
Pretty much the same in coding general, but some feature in ES6 still in experimental phrase in node
14th Dec 2018, 11:24 AM
Taste
Taste - avatar
+ 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
14th Dec 2018, 11:43 AM
Calviղ
Calviղ - avatar
+ 1
Calviղ thanks for help, but I want to know how they work besides js.
14th Dec 2018, 12:21 PM
Seniru
Seniru - avatar
+ 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.
14th Dec 2018, 1:03 PM
Calviղ
Calviղ - avatar