Skip to content

Get available screen size in JavaScript

Advertisements
console.log("Total Available Width = " + window.screen.availWidth);
console.log("Total Available Height = " + window.screen.availHeight);

//Total Available Width = 1858
//Total Available Height = 1053
See also  A Very Big Sum - Hackerrank Challenge - Java Solution

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.