Site Loader
Rock Street, San Francisco

COMSATS Institute of Information Technology


We Will Write a Custom Essay Specifically
For You For Only $13.90/page!

order now



Course Assignment 3- BSCS-6A (CLO-3)




Zainab Iqbal



Dated: 18th December 2017





Node.js uses JavaScript on the server, it handles request form the client. The difference between PHP sending request and node.js sending request is that node.js doesn’t wait for the next request to be opened. It simply continues to process the request.

Just like PHP, node.js can also open, collect, write, read can modify your tables in database.Node.js is asynchronous, non-blocking, and memory efficient.Node.js has a typical event that is to access the port on the server. The .JS files are first initiated on the server then they run. Tasks are executed on certain events.

Steps to make node.js work:

1.   install Node.JS on your computer.

2.   Create any file with extension .JS

3.   Write the following code in the file to display “Hello world”


var http = require(‘http’); // We use the require directive to load the http module and store the returned HTTP instance into an http variable

http.createServer(function (req, res) {
    res.writeHead(200, {‘Content-Type’: ‘text/html’});
    res.end(‘Hello World!’);
}).listen(8080); // We use the created http instance and call http.createServer() method to create a server instance and then we bind it at port 8080 using the listen method associated with the server instance. Pass it a function with parameters req and res.

4.   Save the file



Agular JS is developed by google. It provides facilities like 2-way binding front end development is efficiently developed in this. Angular JS is written in the script tag in html. Angular 1.0 is basically a library written in JavaScript. Angular js is basically to convey the applications components effortlessly.

AngularJS extends HTML with ng-directives. The ng-app directive defines an AngularJS application. The ng-model directive binds the value of HTML controls (input, select, text area) to application data. The ng-bind directive binds application data to the HTML view.

How does AJS work:

When AngularJS starts your application, it parses and processes this new mark-up from the template using the compiler. The loaded, transformed and rendered DOM is then called the view. The first kind of new mark-up are the directives. They apply special behaviour to attributes or elements in the HTML.


MEAN Stack:

It refers to The JavaScript based technologies used to develop web applications. MEAN stands for MONGODB, EXPRESSJS, ANGULARJS and NODEJS. It is a full stack JavaScript from client to server to database. Mean js also includes GRAPHQL, WEBPACK, REACT, BABEL, GULP and MOCHA.


Angular 2.0 and above:

It is an extremely advances MVC (model view controller) framework. It was developed by google in 2009. It not only improves HTML web apps but also simplifies testing and development for developers. Following are the features of angular 2.0

1.   Faster and Modern Browsers

2.   Mobility Driven (better performance on mobiles)

3.   Changing World of Web (support all web components.)

4.   Better Performance

5.   Easy Applicability

6.   Revamped Dependency Injection

7.   Strong and Flexible Routing

The main idea of angular 2.0 is the separation between html manipulation and JavaScript logic in different web pages. So that the mentioned can be developed simultaneously. angularJS provides us a structured JavaScript framework which can perform unit testing easily.


Difference between Angular Js and Angular 2.0 and above:


Angular 2.0

Structured MVC Framework

Component Based Framework

Separation of HTML and Business Logic in JavaScript

It contains the same concept with more modular pattern.

Not strongly typed

It is a strongly type language

Performance is lower as compared

Performance wise it is much faster.














JSON stands for JavaScript object notation, it is a text written with JavaScript notation and is a syntax for storing and exchanging data between a browser and server. we can convert a JavaScript object into JSON, and send JSON to the follows the same syntax as JS but only uses text. The benefit of using this is that it can easily be sent to and from server.

To convert object into JSON:

var myObj = { “name”:”John”, “age”:31, “city”:”New York” };
var myJSON = JSON.stringify(myObj); //converting above object in JSON

to convert JSON in object:

var myJSON = ‘{ “name”:”John”, “age”:31, “city”:”New York” }’;
var myObj = JSON.parse(myJSON); // converting json in object



Ajax is not a programming language or a tool, but a concept. Ajax is a client-side script. AJAX stands for Asynchronous JavaScript and XML.

Ajax allows you to make asynchronous calls to a web server. This allows the client to avoid waiting for all data to arrive before allowing the user to act once more. The major benefits of AJAX are reading data from the web server after the page is can update a page without reloading sends data to the server.

Working of AJAX:

1.   A button is clicked on the web page

2.   An object is created that is xmlhttp request object by JavaScript

3.   This request is sent to the web server and server processes it

4.   A response is sent back by the server and is read by JavaScript

5.   The web page is now updated. (Action taken against the event)


Code Ignitor:

It is a powerful PHP framework built for developers who need a simple and elegant toolkit to create full-featured web applications. It is an Open Source framework. It has a very rich set of functionality, which will increase the speed of website development work. a website built in Code Igniter is secure too, as it has the ability to prevent various attacks that take place through websites.

Post Author: admin


I'm Dora!

Would you like to get a custom essay? How about receiving a customized one?

Check it out