How to get the width and height of the window using JavaScript?
Originally Published Here ๐!
To get the width and height of the window, you can use the innerWidth property and innerHeight property respectively in the global window object in JavaScript.
// window height
const height = window.innerHeight;
// wind...
melvingeorge-me.hashnode.dev1 min read