DEV Community

Discussion on: Window Object in JavaScript

Collapse
 
willemodendaal profile image
Willem Odendaal

The scrolling had me in suspense 😄

It's worth noting that Javascript can run on the "server" as well with Node, in which case the "window" object does not exist. That can get confusing when you're using something like NextJS to use the same code to render HTML dynamically in the browser, and on the server for SEO purposes.

Collapse
 
rahxuls profile image
Rahul

Uh🤪 I'm sorry.

Collapse
 
aminnairi profile image
Amin

Hi Willem!

Believe it or not, but the Window object is well defined in Deno, which is awesome and can make isomorphic code that can work both on the client as well as the server.

doc.deno.land/builtin/stable#Window