Sort by

recency

|

121 Discussions

|

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

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

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

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