Complete the missing parts in the object rectangle with properties length and width.
The method calculateArea should return the area of the rectangle. Then call this method and print the result.
Complete the missing parts in the object rectangle with properties length and width.
The method calculateArea should return the area of the rectangle. Then call this method and print the result.
let rectangle = {
length: 5,
width: 3,
calculateArea() {
return ;
}
};
console.log(rectangle.); // 15Create a free account to access the full topic