Tuesday, June 6, 2017

17/05/2017

                                    NODEJS

What is Node.js?

  • Node.js is an open source server framework
  • Node.js is free
  • Node.js runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.)
  • Node.js uses JavaScript on the server

NODEJS MODULE

Consider modules to be the same as JavaScript libraries.

A set of functions you want to include in your application.

To include a module, use the require() function with the name of the module:
       var http = require('http');

Create a own module
you can create your own modules, and easily include them in your applications.
       exports.myDateTime = function () {
    return Date();
};



No comments:

Post a Comment

HTML introduction

HTML stands for Hyper Text Markup Language. HTML describes the structure of web page using markup. HTML elements are the building blo...