📅  最后修改于: 2022-03-11 15:03:33.798000             🧑  作者: Mango
// Day 4: Create a Rectangle Object hackerrank 10 days of javascript solution
function Rectangle(a, b) {
let rectangleObject = {
length: a,
width: b,
perimeter: 2 *(a +b),
area: a*b
}
return rectangleObject;
}