help me resolve the error :( | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
4th Oct 2019, 5:58 PM
Fahrulf
Fahrulf - avatar
2 Answers
+ 2
In this Code you are using texts[0] to texts[10] but there is only 10 times 'text' class in html. As you know the array indexing start from 0 so if you will get value of texts[10] it will give undefined Because 10th index doesn't exists in array.
4th Oct 2019, 8:37 PM
A͢J
A͢J - avatar
0
thank you A J .. I'm still a little less understanding about arrays
5th Oct 2019, 2:08 AM
Fahrulf
Fahrulf - avatar