What is Node.js and what does it replace?

3

What node.js is what anyway? He substitutes who?

  • JavaScript?
  • ServerSide?

Can anyone explain me better? I did not find the questions on the Web directly.

    
asked by anonymous 19.03.2016 / 02:49

1 answer

3

It does not replace anything. It's just one more option that's available ...

The extremely simplified view of how a webpage works is that the client, through a webbrowser, requests the page to a server. The server responds with HTML content and Javascript scripts. The webbrowser shows the HTML on the screen and runs the Javascript code to make the dynamic parts of the page.

On the side of the webbrowser the only programming language that runs is Javascript whereas on the server side any programming language serves (any programming language is generating generate a document in HTML format). It can be PHP, Python, Perl, or just about any other language you want. It can even be Javascript. Node is a Javascript version with a richer default library, with things you do not have in the browser environment, such as file system access, databases, etc. You can use Node to program a web server in Javascript or simply to run Javascript programs on your computer.

    
19.03.2016 / 03:27