Why I'm not able to enter into if statement?if (document.body.scrollHeight == document.body.scrollTop + window.innerHeight){ ale | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why I'm not able to enter into if statement?if (document.body.scrollHeight == document.body.scrollTop + window.innerHeight){ ale

if (document.body.scrollHeight == document.body.scrollTop + window.innerHeight){ alert(""); }

4th Apr 2021, 7:25 AM
Prafull Epili
Prafull Epili - avatar
1 Answer
+ 1
if statement works when the expression is true
11th Apr 2021, 1:07 PM
Khumoyun
Khumoyun - avatar