"use strict";
var c = console;
//execute when window and DOM are ready
window.onload = function() {
    function Shape(type, height, width) {
        this.type = type;
        this.height = height;
        this.width = width;
    }
    var square = new Shape("square", 4, 4);
    var rectangle = new Shape("rectangle", 6, 4);
    var triangle = new Shape("triangle", 5, 4);

    Shape.prototype.Area = function() {
        return this.height * this.width;
    }
    c.log(square.Area());
    c.log(rectangle.Area());
    c.log(triangle.Area());

    String.prototype.prefix = function(msg) {
        return msg + " " + this;
    }

    c.log('world'.prefix('hello'));
};