0
Why it is returning "false"
var ad=[0] var per=ad.includes() while(ad<5){ ad++ } document.write(per)
2 Respuestas
+ 2
line 2: the .includes() function doesn't have a required argument.
It should be like array.includes(element)
+ 2
Adding to Isaac,
<ad> is an array, and its value can't be compared against a number such as
while( ad < 5 )
And since <ad> was an array, it can't be incremented such as
ad++;