You can get the physical screen size of a user device in javascript.
The screen interface represents the user device screen where the current window is rendered using window.screen.
You can use window.screen.height and window.screen.width to get the user screen height and width.
However, on-screen there is some permanent or semi-permanent user interface displayed by OS, such as a taskbar in the windows, so to get the height and width excluding it you can use screen.availHeight and screen.availWidth.
-------------------------
linkedIn - / shrideep-ghag
twitter - / shrideepghag
youtube - / @shrideepghag
--------------------------
#shorts #interviewquestions #interview #javascript #js #cs #webapp #screensize #screen #physical #device
--------------------------
Video editor: clipchamp
Voice: Neerja
Watch video How to get user screen size in JS online without registration, duration hours minute second in high quality. This video was added by user Shrideep ghag 10 January 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 137 once and liked it 8 people.