Resize a screen

Hi everyone

this is my code to resize a window

when I will resize the screen the message inside the console.log should appear but in, my case nothing happen
I don’t know what is going wrong with my code .
can I get some idea ?
thanks by advance.

the code works for me when i change the browser window itself

I reload it now it working

2 Likes