Use JavaScript innerHeight Property to get the height of the current window’s content area in the browser. This is a read-only property of the Window interface and returns the window’s height in pixels, including the height of the horizontal scroll bar, if present.
window.innerHeight
//OR
innerHeight
JavaScript innerHeight example
Simple example code.
<!DOCTYPE html>
<html>
<body>
<script>
let height = window.innerHeight;
//OR
let h = innerHeight;
console.log('Window Height ',height)
console.log('Height',h)
</script>
</body>
</html>
Output:

Do comment if you have any doubts or suggestions on this JS property topic.
Note: The All JS Examples codes are tested on the Firefox browser and the Chrome browser.
OS: Windows 10
Code: HTML 5 Version