1.screen.width - to check the screen width
2.screen.height - to check the screen height
<script> var width = screen.width; var height = screen.height; //prints output in console console.log(width+"x"+height); // my output: 1366x768 </script>
In this way, we can check the user laptop/computer resolution.
Thanks for taking your valuable time for reading my post, if you have any queries , please leave a comment and will respond. If you find this post useful, please share it.
Social Profile : LinkedIn
Have a Nice Day!