Html & Html5

The World's best Software Development Study Portal

Using http:

var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/html'});
res.end('Hello World!');

Using Objects:

It holds object properties and evaluates at the view, where we use it. It is similar to JavaScript objects that consist of name-value pairs.
Let’s take an example where we will define an object.

<div ng-app="" ng-init="person={firstName:'Marky',lastName:'Steven'}">
<p>The name is {{ person.lastName }}</p>