How to get screen width and height with JavaScript

get screen width and height with JavaScript

< script >if (screen.width>900||window.innerWidth>900) { }</ script >

Get screen width

window.innerWidth

Get screen height

window.innerHeight