// Link to the problem: https://www.hackerrank.com/challenges/js10-objects/problem

/*
 * Complete the Rectangle function
 */
function Rectangle(a, b) {
    this.length = a;
    this.width = b;
    this.area = a * b;
    this.perimeter = 2 * (a + b);
}