JavaScript

Object-Oriented JavaScript

function Rectangle(w, h){
        this.width = w;
        this.height = h;
}

var r1 = new Rectangle(2,3);
r1

José M. Vidal .

53 of 65