0
Why did the alert appear more than 2 times?
2 ответов
+ 3
://Because alert is inside for loop, it will alert until x =5, because inside for loop there is x<arr. length;x++, and arr.length is 5 so x will be alert 5 times
0
Ohhh so what is the elements inside the demo? I thought there are only two as demo has 2 child elements which are the 2 paragraphs? Sorry I am little confused 😖