+ 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
1 Answer
+ 1
Actually it's playground fault. It's working fine on the viewports