This example uses the addEventListener() method to attach a "resize" event on the window object.
Try to resize the browser window.
Window resized 0 times.