Technology

How to implement Inheritance in js2

We are assuming that you have installed js2 in your system, in case if you have not installed js2, first install js2. First of all create a InheritanceTest.js2 file in scr directory with the content given below: [js] class Person { // Parent class var firstName; var lastName; function initialize(firstName, lastName)...

by Amit Kumar
Tag: js2
18-Feb-2013

Technology

Getting started with js2

We are assuming that you have installed node.js in your system, in case if you have not installed node.js, first install node.js. To install js2 run the command given below: [bash] npm install js2 [/bash] Let’s create a simple Hello World project, but first let’s create a project directory structure: [bash] mkdir...

by Amit Kumar
Tag: js2
16-Feb-2013