Node.js is a software for scalable server-side and networking applications.

What is node.js?

Node.js is a software for scalable server-side and networking applications.
Node.js applications are written in JavaScript.
It can be run within the Node.js runtime on Mac OS X, Windows and Linux with no changes.

In which language Node.js is written?

C,C++, javaScript.

Who is creater of Node.js?

Ryan Dahl

How node.js works?

Node.js works on a V8 environment, it is a virtual machine that utilizes JavaScript as its scripting language.

What does event-driven programming?

In event-driven programming, flow of the program is determined by events.

Where Node.js can be used?

  • Web applications ( especially real-time web apps )
  • Network applications
  • Distributed systems
  • General purpose application

What is Advantage of Node.js?

  • Following are advantage of Node.js as compare to other web scripting.
  • Faster
  • More concurrency user
  • Asynchronous
  • Least blocks
  • Helps to build scalable network programs

How to get Post Data in Node.js?

app.use(express.bodyParser();
app.post('/', function(request, response){
    console.log(request.body.user);
    
}); 

How to make Post request in Node.js?

var request = require('request');
request.post(
    'http://drtricker.com/',
    { form: { key: 'value' } },
    function (error, response, body) {
       if (!error && response.statusCode == 200) {
          console.log(body)
       }
    }
);

What are two different types of functions in Node.js?

  • Asynchronous
  • Synchronous

What is Callback in node.js?

It is used to handle the multiple request.

What tool and IDE is used for Node.js?

  • Nodeclipse Enide Studio
  • JetBrains WebStorm
  • JetBrains IntelliJ IDEA
  • Microsoft Visual Studio with TypeScript
  • NoFlo – flow-based programming environment integrated with GNOME APIs