Run
Online Code Editor
This is an example of using JavaScript's addEventListener() method.
Try to resize the browser's window to see the effect.
You have resized the window
0
times.