Node.js is a platform built on the Chrome JavaScript runtime.

Node.js is an event-driven I/O server-side JavaScript environment based on Google's V8 engine. The V8 engine executes Javascript very quickly and has very good performance.

Node.js GET/POST requests syntax

In many scenarios, our server needs to deal with the user's browser, such as form submission.

Forms submitted to the server generally use GET/POST requests.

Node.js GET/POST requests example

var http = require('http');
var url = require('url');
var util = require('util'); 
http.createServer(function(req, res){
    res.writeHead(200, {'Content-Type': 'text/plain; charset=utf-8'});    
res.end(util.inspect(url.parse(req.url, true)));}).listen(3000);