+ 1

Javascript window.innerHeight misbehaving

JavaScript code console.log(innerHeight) outputs 304px for first time and for second time it outputs 581px. Why is so happening with me? Demo code: https://code.sololearn.com/WJT3zirLAuIY/?ref=app

4th Jul 2022, 9:53 AM
Tushar
Tushar - avatar
1 Answer
+ 1
Actually it's playground fault. It's working fine on the viewports
4th Jul 2022, 5:27 PM
Tushar
Tushar - avatar