You are viewing a single comment's thread. Return to all comments →
function Rectangle(a, b) { const perimeter = 2*(a+b); const area = a*b; const recObject = { length: a, width: b, perimeter: perimeter, area: area } return recObject; }
Seems like cookies are disabled on this browser, please enable them to open this website
Day 4: Create a Rectangle Object
You are viewing a single comment's thread. Return to all comments →