+ 3

Unexpected JavaScript Error

This code showing a type error when run in Code Playground. I also added the link to Jquery script. This is the code where error is :- if (typeof dataText[i] == 'undefined'){ setTimeout(function() { StartTextAnimation(0); }, 20000); } Please help. Thanks in advance â˜ș https://code.sololearn.com/WHG32mTD2tzj/?ref=app

30th Nov 2017, 4:09 PM
🔭 GP 🔭
🔭 GP 🔭 - avatar
1 RĂ©ponse
+ 3
change line 32 to this... if (i < dataText.length)
30th Nov 2017, 4:29 PM
Md. Nafis Ul Haque Shifat
Md. Nafis Ul Haque Shifat - avatar