• + 0 comments
    function Rectangle(a, b) {
      return {
        length: a,
        width: b,
        perimeter: 2 * (a + b),
        area: a * b,
      };
    }