Advanced
A rectangle-like object that contains x, y, width, and height properties.
const rect = { x: 0, y: 0, width: 100, height: 100 }; Copy
const rect = { x: 0, y: 0, width: 100, height: 100 };
A rectangle-like object that contains x, y, width, and height properties.
Example