You are viewing a single comment's thread. Return to all comments →
function Rectangle(a, b) { const length = a; const width = b; const perimeter = 2 * (a + b) const area = (a * b) const rectangle = {length, width, perimeter, area}; return rectangle; }
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 →