//using object typelet rect = { point: { x: 3, y: 4 }, size: { width: 10, height: 12 }};console.log("rect.point.x is", rect.point.x)console.log("rect.size.width is", rect.size.width)