Executing JavaScript in the Browser

I have copied the code from https://vaadin.com/docs/v14/flow/browser/tutorial-execute-javascript into my project.

I just wanted to test this out on my page but I don’t see what happens. What is that code doing?

Can you tell me that?

the method prints the size of the width and height of the element passed to it into the browser’s console. Open your browser’s devtools to see the console.

Thanks!